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:
@@ -144,10 +144,7 @@ read_file_in_thread (GTask *task,
|
|||||||
length = new_length;
|
length = new_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_utf8_validate (contents, length, NULL)) /* validate UTF-8 */
|
g_assert (g_utf8_validate (contents, length, NULL));
|
||||||
{
|
|
||||||
GCAL_TRACE_MSG ("File encoding cannot be validated as UTF-8");
|
|
||||||
}
|
|
||||||
|
|
||||||
component = i_cal_parser_parse_string (contents);
|
component = i_cal_parser_parse_string (contents);
|
||||||
ical_error = i_cal_errno_return ();
|
ical_error = i_cal_errno_return ();
|
||||||
|
|||||||
Reference in New Issue
Block a user