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)
This commit is contained in:
Matthias Clasen 2004-03-01 23:45:04 +00:00 committed by Matthias Clasen
parent f94e21be43
commit 9f13de7e04
6 changed files with 27 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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)
Mon Mar 1 23:59:18 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted):

View File

@ -1,3 +1,8 @@
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)
Mon Mar 1 23:59:18 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted):

View File

@ -1,3 +1,8 @@
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)
Mon Mar 1 23:59:18 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted):

View File

@ -1,3 +1,8 @@
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)
Mon Mar 1 23:59:18 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted):

View File

@ -1,3 +1,8 @@
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)
Mon Mar 1 23:59:18 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted):

View File

@ -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;