diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-03-01 23:45:04 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-03-01 23:45:04 +0000 |
commit | 9f13de7e04dec6e4c1ea67261d251dab46179e79 (patch) | |
tree | a589168f048c31c3196814ff3a00e3ae1d4735e6 /gtk/gtkimmodule.c | |
parent | f94e21be431127aa540accc55ced8a02967ca604 (diff) | |
download | gtk+-9f13de7e04dec6e4c1ea67261d251dab46179e79.tar.gz |
Use case-insensitive comparison. Fixes XIM module loading on AIX.
Tue Mar 2 00:47:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkimmodule.c (match_locale): Use case-insensitive
comparison. Fixes XIM module loading on AIX. (#131277)
Diffstat (limited to 'gtk/gtkimmodule.c')
-rw-r--r-- | gtk/gtkimmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkimmodule.c b/gtk/gtkimmodule.c index c68644332f..90f3f94682 100644 --- a/gtk/gtkimmodule.c +++ b/gtk/gtkimmodule.c @@ -517,10 +517,10 @@ match_locale (const gchar *locale, if (strcmp (against, "*") == 0) return 1; - if (strcmp (locale, against) == 0) + if (g_ascii_strcasecmp (locale, against) == 0) return 4; - if (strncmp (locale, against, 2) == 0) + if (g_ascii_strncasecmp (locale, against, 2) == 0) return (against_len == 2) ? 3 : 2; return 0; |