ash,hush: recheck LANG before every line input
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
7f4b769c42
commit
20704f0662
4 changed files with 52 additions and 28 deletions
|
@ -27,6 +27,7 @@ enum {
|
|||
# define unicode_strwidth(string) strlen(string)
|
||||
# define unicode_status UNICODE_OFF
|
||||
# define init_unicode() ((void)0)
|
||||
# define reinit_unicode(LANG) ((void)0)
|
||||
|
||||
#else
|
||||
|
||||
|
@ -67,6 +68,7 @@ char* FAST_FUNC unicode_conv_to_printable_fixedwidth(/*uni_stat_t *stats,*/ cons
|
|||
|
||||
extern uint8_t unicode_status;
|
||||
void init_unicode(void) FAST_FUNC;
|
||||
void reinit_unicode(const char *LANG) FAST_FUNC;
|
||||
|
||||
# else
|
||||
|
||||
|
@ -75,9 +77,11 @@ void init_unicode(void) FAST_FUNC;
|
|||
# if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV
|
||||
# define unicode_status UNICODE_ON
|
||||
# define init_unicode() ((void)0)
|
||||
# define reinit_unicode(LANG) ((void)0)
|
||||
# else
|
||||
extern uint8_t unicode_status;
|
||||
void init_unicode(void) FAST_FUNC;
|
||||
void reinit_unicode(const char *LANG) FAST_FUNC;
|
||||
# endif
|
||||
|
||||
# undef MB_CUR_MAX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue