diff options
author | Denys Vlasenko | 2009-07-16 16:09:25 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-07-16 16:09:25 +0200 |
commit | fff73641e473763ba47c84f5c04eb0fc0da6d64b (patch) | |
tree | 7cefa71eb6174866108ebe8cde5c7babadd9ee07 /libbb | |
parent | 9531f7dad708b9130142aaaac6ed095f23ed3c35 (diff) | |
download | busybox-fff73641e473763ba47c84f5c04eb0fc0da6d64b.zip busybox-fff73641e473763ba47c84f5c04eb0fc0da6d64b.tar.gz |
widen "Unicode in environment" check
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/unicode.c b/libbb/unicode.c index 3519984..544528a 100644 --- a/libbb/unicode.c +++ b/libbb/unicode.c @@ -39,7 +39,7 @@ void FAST_FUNC check_unicode_in_env(void) unicode_is_enabled = 1; lang = getenv("LANG"); - if (!lang || !strstr(lang, ".utf8")) + if (!lang || !(strstr(lang, ".utf") || strstr(lang, ".UTF"))) return; unicode_is_enabled = 2; |