aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-09 16:39:40 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-09 16:39:40 +0000
commitc32ca6a8e66fc1a1e56587eefbae3d9bcc18b6b1 (patch)
tree7108731881c9f15859bdc7a607349d1891771da9 /tmux.c
parentc9f55c1063afdfd0f4c769b5d126a9ee4206d8b0 (diff)
downloadrtmux-c32ca6a8e66fc1a1e56587eefbae3d9bcc18b6b1.tar.gz
rtmux-c32ca6a8e66fc1a1e56587eefbae3d9bcc18b6b1.tar.bz2
rtmux-c32ca6a8e66fc1a1e56587eefbae3d9bcc18b6b1.zip
Sync OpenBSD patchset 216:
Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also appear.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tmux.c b/tmux.c
index 5ccd5887..15ab3b61 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.154 2009-08-09 15:26:24 tcunha Exp $ */
+/* $Id: tmux.c,v 1.155 2009-08-09 16:39:40 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -341,7 +341,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;
}