diff -ru fontconfig-2.1.pristine/src/fcname.c fontconfig-2.1/src/fcname.c --- fontconfig-2.1.pristine/src/fcname.c 2002-10-02 02:11:30.000000000 -0500 +++ fontconfig-2.1/src/fcname.c 2003-01-10 15:47:47.000000000 -0600 @@ -219,10 +219,17 @@ const FcConstantList *l; int i; + FcChar8 *s = string; + while(*s) + { + *s = FcToLower(*s); + s++; + } + for (l = _FcConstants; l; l = l->next) { for (i = 0; i < l->nconsts; i++) - if (!FcStrCmpIgnoreCase (string, l->consts[i].name)) + if (!strcmp (string, l->consts[i].name)) return &l->consts[i]; } return 0; @@ -246,9 +253,7 @@ { char c0, c1; - c0 = *v; - if (isupper (c0)) - c0 = tolower (c0); + c0 = FcToLower (v[0]); if (c0 == 't' || c0 == 'y' || c0 == '1') { *result = FcTrue; @@ -261,9 +266,7 @@ } if (c0 == 'o') { - c1 = v[1]; - if (isupper (c1)) - c1 = tolower (c1); + c1 = FcToLower (v[1]); if (c1 == 'n') { *result = FcTrue;