Fix string handling for Turkish locale

This commit is contained in:
Berke Viktor
2012-06-16 13:01:47 +02:00
parent ee7dcc5f22
commit 35821f3875
22 changed files with 135 additions and 135 deletions

View File

@@ -198,7 +198,7 @@ nocasestrstr (const char *s, const char *tofind)
if (len == 0)
return (char *)s;
while (toupper(*s) != toupper(*tofind) || strncasecmp (s, tofind, len))
while (toupper(*s) != toupper(*tofind) || g_ascii_strncasecmp (s, tofind, len))
if (*s++ == '\0')
return (char *)NULL;
return (char *)s;