Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also

appear.
This commit is contained in:
Nicholas Marriott 2009-08-04 10:31:28 +00:00
parent 6b69b93b53
commit 93bf2a1d72

3
tmux.c
View File

@ -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;
}