summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2016-03-01 12:02:08 +0000
committernicm <nicm>2016-03-01 12:02:08 +0000
commit26945d7956bf1f160fba72677082e1a9c6968e0c (patch)
tree2eddf33b2a95384f21b9b315715843df57b4a784 /tmux.c
parentc7851e0ee71e26ee9af67f2523679132369b152f (diff)
Use system wcwidth() instead of carrying around UTF-8 width tables.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.c b/tmux.c
index 1ee2a269..68cd4bb7 100644
--- a/tmux.c
+++ b/tmux.c
@@ -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 == '-')