fixes for utf and non-utf locales

This commit is contained in:
Sergey V. Udaltsov 2004-01-10 00:06:29 +00:00
parent 4a5e483105
commit 9d9d09a564
3 changed files with 458 additions and 473 deletions

View file

@ -135,7 +135,7 @@ add_model_to_option_menu (const XklConfigItemPtr configItem, GtkWidget * menu)
GtkWidget *menuItem = GTK_WIDGET (existingItemNode->data);
GtkWidget *lbl = GTK_BIN (menuItem)->child;
const char *txt = gtk_label_get_text (GTK_LABEL (lbl));
if (g_strcasecmp (txt, utfModelName) > 0)
if (g_utf8_collate(txt, utfModelName) > 0)
break;
}
g_free (utfModelName);