diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-10-23 08:03:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-10-23 08:03:27 +0000 |
commit | b32254acda43bc4966565f482ccf911b74a95345 (patch) | |
tree | 4ff4724caadb685e4d75139c8779ae37c60315a3 /tmux.c | |
parent | 16d75a6bf2273bbe58c6d82b65f231152919fef2 (diff) | |
download | rtmux-b32254acda43bc4966565f482ccf911b74a95345.tar.gz rtmux-b32254acda43bc4966565f482ccf911b74a95345.tar.bz2 rtmux-b32254acda43bc4966565f482ccf911b74a95345.zip |
Ignore LC_ALL and LC_CTYPE if they are empty as well as unset.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -289,8 +289,8 @@ main(int argc, char **argv) * if not they know that output from UTF-8-capable programs may * be wrong. */ - if ((s = getenv("LC_ALL")) == NULL) { - if ((s = getenv("LC_CTYPE")) == NULL) + if ((s = getenv("LC_ALL")) == NULL || *s == '\0') { + if ((s = getenv("LC_CTYPE")) == NULL || *s == '\0') s = getenv("LANG"); } if (s != NULL && (strcasestr(s, "UTF-8") != NULL || |