summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-03-01 12:02:09 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-03-01 12:02:09 +0000
commitecd3b3ce586e228059ba6a2e926cf2129c7e2f5a (patch)
tree34b9eb0140183bb98d70a984a496dfb06ba5b3c8 /usr.bin/tmux/tmux.c
parentebc61935f4a4be4cf5fff2e500cc34a27361eb5b (diff)
Use system wcwidth() instead of carrying around UTF-8 width tables.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r--usr.bin/tmux/tmux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index 302095b75c6..98096297759 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.164 2016/01/19 15:59:12 nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.165 2016/03/01 12:02:08 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -188,7 +188,10 @@ main(int argc, char **argv)
const char *s;
int opt, flags, keys;
+
+ setlocale(LC_CTYPE, "en_US.UTF-8");
setlocale(LC_TIME, "");
+
tzset();
if (**argv == '-')