summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}