aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-23 18:27:40 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-23 18:27:40 +0000
commitc2b0fdae5b8b3bb3c0ac79f890e180672af27bb3 (patch)
treef5fb59cf110af5d0f744574dc5a33e9c085dbd96 /tmux.c
parent89262c62fe6c49e87f62acfcbb02edc8c8afaf17 (diff)
downloadrtmux-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmux.c b/tmux.c
index 88f76780..ee05cc19 100644
--- a/tmux.c
+++ b/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)