Index: gtk/compose.c =================================================================== --- gtk/compose.c (revision 6879) +++ gtk/compose.c (revision 6880) @@ -621,7 +621,10 @@ { char *result; result = g_locale_to_utf8(rhs_string_mb, -1, NULL, NULL, NULL); - rhs_string_utf8 = strdup(result); + if (!result) + rhs_string_utf8 = strdup(""); + else + rhs_string_utf8 = strdup(result); g_free(result); }