Commit 9f13de7e authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent f94e21be
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):
......
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):
......
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):
......
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):
......
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):
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment