diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/misc/ctype/ctype.c | 2 | ||||
-rw-r--r-- | libc/misc/locale/locale.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c index d88b342fd..76a671a44 100644 --- a/libc/misc/ctype/ctype.c +++ b/libc/misc/ctype/ctype.c @@ -316,6 +316,7 @@ int tolower_l(int c, __locale_t l) return __UCLIBC_CTYPE_IN_TO_DOMAIN(c) ? l->__ctype_tolower[c] : c; } libc_hidden_def(tolower_l) +weak_alias (tolower_l, __tolower_l) #endif /**********************************************************************/ @@ -362,6 +363,7 @@ int toupper_l(int c, __locale_t l) return __UCLIBC_CTYPE_IN_TO_DOMAIN(c) ? l->__ctype_toupper[c] : c; } libc_hidden_def(toupper_l) +weak_alias (toupper_l, __toupper_l) #endif /**********************************************************************/ diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c index b782d5ead..67ca4c248 100644 --- a/libc/misc/locale/locale.c +++ b/libc/misc/locale/locale.c @@ -1142,7 +1142,7 @@ static int find_locale(int category_mask, const char *p, /* TODO: maybe CODESET_LIST + *s ??? */ /* 7bit is 1, UTF-8 is 2, 8-bit is >= 3 */ codeset = 2; - if (strcmp(utf8,p+6) != 0) {/* TODO - fix! */ + if (strcasecmp(utf8,p+6) != 0) {/* TODO - fix! */ s = CODESET_LIST; do { ++codeset; /* Increment codeset first. */ |