diff options
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index dc7a9bf4f..3b8aac553 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -9661,7 +9661,9 @@ preadfd(void) | |||
9661 | * _during_ shell execution, not only if it was set when | 9661 | * _during_ shell execution, not only if it was set when |
9662 | * shell was started. Therefore, re-check LANG every time: | 9662 | * shell was started. Therefore, re-check LANG every time: |
9663 | */ | 9663 | */ |
9664 | { | 9664 | if (ENABLE_FEATURE_CHECK_UNICODE_IN_ENV |
9665 | || ENABLE_UNICODE_USING_LOCALE | ||
9666 | ) { | ||
9665 | const char *s = lookupvar("LC_ALL"); | 9667 | const char *s = lookupvar("LC_ALL"); |
9666 | if (!s) s = lookupvar("LC_CTYPE"); | 9668 | if (!s) s = lookupvar("LC_CTYPE"); |
9667 | if (!s) s = lookupvar("LANG"); | 9669 | if (!s) s = lookupvar("LANG"); |