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 --- include/locale.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/locale.h b/include/locale.h index 02d33a0d4..ba04e8902 100644 --- a/include/locale.h +++ b/include/locale.h @@ -132,7 +132,7 @@ extern struct lconv *localeconv (void) __THROW; __END_NAMESPACE_STD -#if defined(__USE_GNU) && defined(__UCLIBC_HAS_XLOCALE__) +#if defined(__USE_GNU) /* The concept of one static locale per category is not very well thought out. Many applications will need to process its data using information from several different locales. Another application is @@ -144,8 +144,10 @@ __END_NAMESPACE_STD Attention: all these functions are *not* standardized in any form. This is a proof-of-concept implementation. */ +#if defined(__UCLIBC_HAS_XLOCALE__) /* Get locale datatype definition. */ # include +#endif typedef __locale_t locale_t; -- cgit v1.2.3