mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
LC_ALL overrides LC_CTYPE and LANG. Comment was correct but the code
wrong. Pointed out by Hannah Schroeter, thanks.
This commit is contained in:
parent
89262c62fe
commit
c2b0fdae5b
4
tmux.c
4
tmux.c
@ -332,8 +332,8 @@ main(int argc, char **argv)
|
||||
* if not they know that output from UTF-8-capable programs may
|
||||
* be wrong.
|
||||
*/
|
||||
if ((s = getenv("LC_CTYPE")) == NULL) {
|
||||
if ((s = getenv("LC_ALL")) == NULL)
|
||||
if ((s = getenv("LC_ALL")) == NULL) {
|
||||
if ((s = getenv("LC_CTYPE")) == NULL)
|
||||
s = getenv("LANG");
|
||||
}
|
||||
if (s != NULL && strcasestr(s, "UTF-8") != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user