summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-08-04 10:31:29 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-08-04 10:31:29 +0000
commitdf6579ea906bb9eb1ede049b15544caf5a8f1896 (patch)
treea86080b2138f9585c9675773dfa65f1cc0e2ce6f
parenta4e5363bac90bd24df730b9c76965c00d0297aba (diff)
Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also
appear.
-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;
}