mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 09:10:20 +00:00
Fix string handling for Turkish locale
This commit is contained in:
@@ -283,7 +283,7 @@ nocasestrstr (const char *s, const char *wanted)
|
||||
|
||||
if (len == 0)
|
||||
return (char *)s;
|
||||
while (rfc_tolower(*s) != rfc_tolower(*wanted) || strncasecmp (s, wanted, len))
|
||||
while (rfc_tolower(*s) != rfc_tolower(*wanted) || g_ascii_strncasecmp (s, wanted, len))
|
||||
if (*s++ == '\0')
|
||||
return (char *)NULL;
|
||||
return (char *)s;
|
||||
@@ -945,7 +945,7 @@ typedef struct
|
||||
static int
|
||||
country_compare (const void *a, const void *b)
|
||||
{
|
||||
return strcasecmp (a, ((domain_t *)b)->code);
|
||||
return g_ascii_strcasecmp (a, ((domain_t *)b)->code);
|
||||
}
|
||||
|
||||
static const domain_t domain[] =
|
||||
|
||||
Reference in New Issue
Block a user