tweaking Unicode support

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-07-11 22:26:48 +02:00
parent 42a8fd0db0
commit fda8f57360
3 changed files with 61 additions and 83 deletions

View file

@ -7,10 +7,13 @@
#if !ENABLE_FEATURE_ASSUME_UNICODE
# define bb_mbstrlen(string) strlen(string)
# define check_unicode_in_env() ((void)0)
#else
size_t bb_mbstrlen(const char *string) FAST_FUNC;
# if ENABLE_LOCALE_SUPPORT
# include <wchar.h>
@ -19,6 +22,8 @@
# else
/* Crude "locale support" which knows only C and Unicode locales */
# if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV
# define check_unicode_in_env() ((void)0)
# else
@ -50,8 +55,8 @@ int iswspace(wint_t wc) FAST_FUNC;
int iswalnum(wint_t wc) FAST_FUNC;
int iswpunct(wint_t wc) FAST_FUNC;
# endif
#endif
# endif /* !LOCALE_SUPPORT */
#endif /* FEATURE_ASSUME_UNICODE */
#endif