diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-06-23 18:27:40 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-06-23 18:27:40 +0000 |
commit | c2b0fdae5b8b3bb3c0ac79f890e180672af27bb3 (patch) | |
tree | f5fb59cf110af5d0f744574dc5a33e9c085dbd96 /tmux.c | |
parent | 89262c62fe6c49e87f62acfcbb02edc8c8afaf17 (diff) | |
download | rtmux-c2b0fdae5b8b3bb3c0ac79f890e180672af27bb3.tar.gz rtmux-c2b0fdae5b8b3bb3c0ac79f890e180672af27bb3.tar.bz2 rtmux-c2b0fdae5b8b3bb3c0ac79f890e180672af27bb3.zip |
LC_ALL overrides LC_CTYPE and LANG. Comment was correct but the code
wrong. Pointed out by Hannah Schroeter, thanks.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |