mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also
appear.
This commit is contained in:
parent
6b69b93b53
commit
93bf2a1d72
3
tmux.c
3
tmux.c
@ -332,7 +332,8 @@ main(int argc, char **argv)
|
|||||||
if ((s = getenv("LC_CTYPE")) == NULL)
|
if ((s = getenv("LC_CTYPE")) == NULL)
|
||||||
s = getenv("LANG");
|
s = getenv("LANG");
|
||||||
}
|
}
|
||||||
if (s != NULL && strcasestr(s, "UTF-8") != NULL)
|
if (s != NULL && (strcasestr(s, "UTF-8") != NULL ||
|
||||||
|
strcasestr(s, "UTF8") != NULL))
|
||||||
flags |= IDENTIFY_UTF8;
|
flags |= IDENTIFY_UTF8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user