summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-08-04 10:31:28 +0000
committernicm <nicm@openbsd.org>2009-08-04 10:31:28 +0000
commita7a86d624f7fbac1aa104caa5b7f2710205c5afb (patch)
treeed16180e4b8aebfe1cac1fb6b34f08ac741fc5eb /usr.bin/tmux/tmux.c
parentclean up some macro abuse in the commands section; (diff)
downloadwireguard-openbsd-a7a86d624f7fbac1aa104caa5b7f2710205c5afb.tar.xz
wireguard-openbsd-a7a86d624f7fbac1aa104caa5b7f2710205c5afb.zip
Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also
appear.
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;
}