From fff73641e473763ba47c84f5c04eb0fc0da6d64b Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 16 Jul 2009 16:09:25 +0200 Subject: widen "Unicode in environment" check Signed-off-by: Denys Vlasenko --- libbb/unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1