summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r--usr.bin/tmux/tmux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index 2054309155d..692bcf91f19 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.25 2009/08/03 14:10:54 nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.26 2009/08/04 10:31:28 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;
}