aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2016-02-19 13:14:17 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2016-02-19 13:14:17 +0000
commitacc1090e778090b8c5d2488220897873266dc368 (patch)
tree861af8b648615a979ffe91dfbb64c0ca75f74658 /tmux.c
parentfc864529f587fc4c913d1ad40da41eab2e512521 (diff)
downloadrtmux-acc1090e778090b8c5d2488220897873266dc368.tar.gz
rtmux-acc1090e778090b8c5d2488220897873266dc368.tar.bz2
rtmux-acc1090e778090b8c5d2488220897873266dc368.zip
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 ff087124..b1285c3e 100644
--- a/tmux.c
+++ b/tmux.c
@@ -190,7 +190,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 == '-')