From 2d75d3fb306515f1a362f6bd0c2e918474b6dbae Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 6 Nov 2024 10:04:26 -0300 Subject: [PATCH] importer: Assert instead of trace We go to great lengths to convert to UTF-8, so it's only fair to expect it to be UTF-8 --- src/gui/importer/gcal-importer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/importer/gcal-importer.c b/src/gui/importer/gcal-importer.c index ecc6d517..87229a41 100644 --- a/src/gui/importer/gcal-importer.c +++ b/src/gui/importer/gcal-importer.c @@ -144,10 +144,7 @@ read_file_in_thread (GTask *task, length = new_length; } - if (!g_utf8_validate (contents, length, NULL)) /* validate UTF-8 */ - { - GCAL_TRACE_MSG ("File encoding cannot be validated as UTF-8"); - } + g_assert (g_utf8_validate (contents, length, NULL)); component = i_cal_parser_parse_string (contents); ical_error = i_cal_errno_return ();