mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
widen "Unicode in environment" check
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
9531f7dad7
commit
fff73641e4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user