summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-04 10:31:28 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-04 10:31:28 +0000
commit93bf2a1d726c5f98a8460efcd199a8d202ecb3cc (patch)
tree9cd31963e35ddb6fa22b95c442a24430a52fa452
parent6b69b93b53681632c501d0e9ce19e78736c68cce (diff)
Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also
appear.
-rw-r--r--tmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index ff1bd4c4..792969b3 100644
--- a/tmux.c
+++ b/tmux.c
@@ -332,7 +332,8 @@ main(int argc, char **argv)
if ((s = getenv("LC_CTYPE")) == NULL)
s = getenv("LANG");
}
- if (s != NULL && strcasestr(s, "UTF-8") != NULL)
+ if (s != NULL && (strcasestr(s, "UTF-8") != NULL ||
+ strcasestr(s, "UTF8") != NULL))
flags |= IDENTIFY_UTF8;
}