diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 16:00:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 16:00:02 +0000 |
commit | cd5a4f4c3586eac9c1a4ba7c962cec16fc92dd08 (patch) | |
tree | bda1eef306613061029e21ea3d0a044c7b384dd3 /tmux.c | |
parent | 7be69bfa031477c353368caa83e986b250bf6e10 (diff) | |
download | rtmux-cd5a4f4c3586eac9c1a4ba7c962cec16fc92dd08.tar.gz rtmux-cd5a4f4c3586eac9c1a4ba7c962cec16fc92dd08.tar.bz2 rtmux-cd5a4f4c3586eac9c1a4ba7c962cec16fc92dd08.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 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.8 2009/06/05 07:22:23 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.9 2009/06/23 18:27:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -348,8 +348,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) |