From df6579ea906bb9eb1ede049b15544caf5a8f1896 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 4 Aug 2009 10:31:29 +0000 Subject: Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also appear. --- usr.bin/tmux/tmux.c | 5 +++-- 1 file 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 @@ -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; } -- cgit v1.2.3