Revision: 6879 Author: ek.kato Date: Sat Jan 1 06:28:24 2011 Log: * gtk/compose.c (parse_compose_line) : Modified to set "" when conversion failed.
http://code.google.com/p/uim/source/detail?r=6879 Modified: /trunk/gtk/compose.c ======================================= --- /trunk/gtk/compose.c Fri Dec 31 16:19:51 2010 +++ /trunk/gtk/compose.c Sat Jan 1 06:28:24 2011 @@ -619,12 +619,13 @@ } { - char *result; - result = g_locale_to_utf8(rhs_string_mb, -1, NULL, NULL, NULL); - if (!result) - goto error; - rhs_string_utf8 = strdup(result); - g_free(result); + char *result; + result = g_locale_to_utf8(rhs_string_mb, -1, NULL, NULL, NULL); + if (!result) + rhs_string_utf8 = strdup(""); + else + rhs_string_utf8 = strdup(result); + g_free(result); } for (i = 0; i < n; i++) {
