GNOME Bugzilla – Bug 521591
g_markup_parse_context_parse() creates GError message that is invalid UTF8.
Last modified: 2008-03-11 15:43:48 UTC
When GMarkup parses invalid UTF8, it puts this invalid UTF8 directly into the GError message, meaning that the GError message is no longer a "human-readable informative error message". I guess that some conversion should be done first. Would g_convert_with_fallback() be the best way to do this?
Created attachment 106975 [details] gmarkup_test.c A test case to show the problem.
Yeah, g_convert_with_fallback would be ok for this.
Created attachment 107060 [details] [review] gmarkup_utf8_error.patch Permission to apply this? It fixes the test case.
Please apply, after adding a space before '('