From 498822b67f68710b11d64a5aaf66aa1b865ef86e Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Mon, 19 May 2008 15:24:14 +0000 Subject: Added a bounch of locale fixes. * extra/locale/gen_wc8bit.c: use strrchr to parse locale name to handle the case in which it contains a '.' character like ANSI_X3.4-1968 * include/locale.h: use __UCLIBC_HAS_XLOCALE__ to control inclusion of xlocale.h only * libc/misc/ctype/ctype.c: add missing weak_alias for __tolower_l and __toupper_l * libc/misc/locale/locale.c: use strcasecmp (case insensitive) for utf-8 locale name. Signed-off-by: Carmelo Amoroso --- extra/locale/gen_wc8bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extra/locale') diff --git a/extra/locale/gen_wc8bit.c b/extra/locale/gen_wc8bit.c index 429421616..7cefb53be 100644 --- a/extra/locale/gen_wc8bit.c +++ b/extra/locale/gen_wc8bit.c @@ -189,7 +189,7 @@ int main(int argc, char **argv) } else { ++s0; } - s1 = strchr(s0, '.'); + s1 = strrchr(s0, '.'); if (!s1) { n = strlen(s0); } else { -- cgit v1.2.3