diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-23 17:59:27 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-23 17:59:27 +0100 |
commit | 20704f066250744c0c2b84920c27d0fd0aa9e935 (patch) | |
tree | 8a76e56e4be0beb84dbe993922d4be86ab694350 /include | |
parent | 7f4b769c42f3773ff2e2e749547291dcb7e85d01 (diff) | |
download | busybox-w32-20704f066250744c0c2b84920c27d0fd0aa9e935.tar.gz busybox-w32-20704f066250744c0c2b84920c27d0fd0aa9e935.tar.bz2 busybox-w32-20704f066250744c0c2b84920c27d0fd0aa9e935.zip |
ash,hush: recheck LANG before every line input
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unicode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/unicode.h b/include/unicode.h index dee02e777..0317a2151 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
@@ -27,6 +27,7 @@ enum { | |||
27 | # define unicode_strwidth(string) strlen(string) | 27 | # define unicode_strwidth(string) strlen(string) |
28 | # define unicode_status UNICODE_OFF | 28 | # define unicode_status UNICODE_OFF |
29 | # define init_unicode() ((void)0) | 29 | # define init_unicode() ((void)0) |
30 | # define reinit_unicode(LANG) ((void)0) | ||
30 | 31 | ||
31 | #else | 32 | #else |
32 | 33 | ||
@@ -67,6 +68,7 @@ char* FAST_FUNC unicode_conv_to_printable_fixedwidth(/*uni_stat_t *stats,*/ cons | |||
67 | 68 | ||
68 | extern uint8_t unicode_status; | 69 | extern uint8_t unicode_status; |
69 | void init_unicode(void) FAST_FUNC; | 70 | void init_unicode(void) FAST_FUNC; |
71 | void reinit_unicode(const char *LANG) FAST_FUNC; | ||
70 | 72 | ||
71 | # else | 73 | # else |
72 | 74 | ||
@@ -75,9 +77,11 @@ void init_unicode(void) FAST_FUNC; | |||
75 | # if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV | 77 | # if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV |
76 | # define unicode_status UNICODE_ON | 78 | # define unicode_status UNICODE_ON |
77 | # define init_unicode() ((void)0) | 79 | # define init_unicode() ((void)0) |
80 | # define reinit_unicode(LANG) ((void)0) | ||
78 | # else | 81 | # else |
79 | extern uint8_t unicode_status; | 82 | extern uint8_t unicode_status; |
80 | void init_unicode(void) FAST_FUNC; | 83 | void init_unicode(void) FAST_FUNC; |
84 | void reinit_unicode(const char *LANG) FAST_FUNC; | ||
81 | # endif | 85 | # endif |
82 | 86 | ||
83 | # undef MB_CUR_MAX | 87 | # undef MB_CUR_MAX |