From 93bf2a1d726c5f98a8460efcd199a8d202ecb3cc Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 4 Aug 2009 10:31:28 +0000 Subject: Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also appear. --- tmux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tmux.c') 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; } -- cgit v1.2.3