diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-11 22:26:48 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-11 22:26:48 +0200 |
| commit | fda8f57360aaf24dba3784aae4818f5a351f5c7d (patch) | |
| tree | b8de1ad1663efc5270ae2e5e1067d84a1530474f /include | |
| parent | 42a8fd0db08ab8b45fec6eab4af841f99576b260 (diff) | |
| download | busybox-w32-fda8f57360aaf24dba3784aae4818f5a351f5c7d.tar.gz busybox-w32-fda8f57360aaf24dba3784aae4818f5a351f5c7d.tar.bz2 busybox-w32-fda8f57360aaf24dba3784aae4818f5a351f5c7d.zip | |
tweaking Unicode support
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/unicode.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/unicode.h b/include/unicode.h index be64a50e2..e0061478d 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
| @@ -7,10 +7,13 @@ | |||
| 7 | 7 | ||
| 8 | #if !ENABLE_FEATURE_ASSUME_UNICODE | 8 | #if !ENABLE_FEATURE_ASSUME_UNICODE |
| 9 | 9 | ||
| 10 | # define bb_mbstrlen(string) strlen(string) | ||
| 10 | # define check_unicode_in_env() ((void)0) | 11 | # define check_unicode_in_env() ((void)0) |
| 11 | 12 | ||
| 12 | #else | 13 | #else |
| 13 | 14 | ||
| 15 | size_t bb_mbstrlen(const char *string) FAST_FUNC; | ||
| 16 | |||
| 14 | # if ENABLE_LOCALE_SUPPORT | 17 | # if ENABLE_LOCALE_SUPPORT |
| 15 | 18 | ||
| 16 | # include <wchar.h> | 19 | # include <wchar.h> |
| @@ -19,6 +22,8 @@ | |||
| 19 | 22 | ||
| 20 | # else | 23 | # else |
| 21 | 24 | ||
| 25 | /* Crude "locale support" which knows only C and Unicode locales */ | ||
| 26 | |||
| 22 | # if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV | 27 | # if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV |
| 23 | # define check_unicode_in_env() ((void)0) | 28 | # define check_unicode_in_env() ((void)0) |
| 24 | # else | 29 | # else |
| @@ -50,8 +55,8 @@ int iswspace(wint_t wc) FAST_FUNC; | |||
| 50 | int iswalnum(wint_t wc) FAST_FUNC; | 55 | int iswalnum(wint_t wc) FAST_FUNC; |
| 51 | int iswpunct(wint_t wc) FAST_FUNC; | 56 | int iswpunct(wint_t wc) FAST_FUNC; |
| 52 | 57 | ||
| 53 | # endif | 58 | # endif /* !LOCALE_SUPPORT */ |
| 54 | 59 | ||
| 55 | #endif | 60 | #endif /* FEATURE_ASSUME_UNICODE */ |
| 56 | 61 | ||
| 57 | #endif | 62 | #endif |
