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
This commit is contained in:
Georges Basile Stavracas Neto
2024-11-06 10:04:26 -03:00
parent fa88b4999c
commit 2d75d3fb30
+1 -4
View File
@@ -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 ();