widen "Unicode in environment" check

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-07-16 16:09:25 +02:00
parent 9531f7dad7
commit fff73641e4

View File

@ -39,7 +39,7 @@ void FAST_FUNC check_unicode_in_env(void)
unicode_is_enabled = 1; unicode_is_enabled = 1;
lang = getenv("LANG"); lang = getenv("LANG");
if (!lang || !strstr(lang, ".utf8")) if (!lang || !(strstr(lang, ".utf") || strstr(lang, ".UTF")))
return; return;
unicode_is_enabled = 2; unicode_is_enabled = 2;