mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-23 11:07:44 +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
1 changed files with 2 additions and 1 deletions
3
tmux.c
3
tmux.c
|
|
@ -332,7 +332,8 @@ main(int argc, char **argv)
|
|||
if ((s = getenv("LC_CTYPE")) == NULL)
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue