composetable: Don't abort on unsupported escape sequences

People might put all sorts of gunk in their .XCompose file, in
the hope that XLib makes sense of it. Even if we don't make sense
of it, we shouldn't abort, but instead ignore the lines we can't
understand. Pointed out in
https://bugzilla.redhat.com/show_bug.cgi?id=1301254
This commit is contained in:
Matthias Clasen
2016-01-27 23:22:02 -05:00
parent b8a0f3582b
commit 03f4666994

View File

@ -104,7 +104,9 @@ parse_compose_value (GtkComposeData *compose_data,
uch = g_ascii_strtoll(words[1] + 1, NULL, 8);
/* If we need to handle other escape sequences. */
else if (uch != '\\')
g_assert_not_reached ();
{
g_warning ("Invalid escape sequence: %s: %s", val, line);
}
}
if (g_utf8_get_char (g_utf8_next_char (words[1])) > 0)