# HG changeset patch # User Jason Rumney # Date 1211463354 0 # Node ID 55ae253968bc6ee3f9a0dd4f7f6af33d4639637f # Parent 802ca11b791e110ea4d592d79d2972bfaac8f1d2 (xfont_list_pattern, compare_font_names): Use xstricmp. diff -r 802ca11b791e -r 55ae253968bc src/xfont.c --- a/src/xfont.c Thu May 22 12:50:48 2008 +0000 +++ b/src/xfont.c Thu May 22 13:35:54 2008 +0000 @@ -206,7 +206,7 @@ static int compare_font_names (const void *name1, const void *name2) { - return strcasecmp (*(const char **) name1, *(const char **) name2); + return xstricmp (*(const char **) name1, *(const char **) name2); } static Lisp_Object xfont_list_pattern P_ ((Lisp_Object, Display *, char *)); @@ -253,7 +253,7 @@ Lisp_Object entity; int result; - if (i > 0 && strcasecmp (indices[i - 1], indices[i]) == 0) + if (i > 0 && xstricmp (indices[i - 1], indices[i]) == 0) continue; entity = font_make_entity ();