diff options
author | 2016-03-01 12:02:08 +0000 | |
---|---|---|
committer | 2016-03-01 12:02:08 +0000 | |
commit | f5015ed68bd7214ea853a6d82b6b9325205c79bb (patch) | |
tree | 35e70123f23bcbb5438047bfe68e5b7e2dc54dd6 /usr.bin/tmux/tmux.c | |
parent | Fix break-pane synopsis and some other tmux.1 bits. (diff) | |
download | wireguard-openbsd-f5015ed68bd7214ea853a6d82b6b9325205c79bb.tar.xz wireguard-openbsd-f5015ed68bd7214ea853a6d82b6b9325205c79bb.zip |
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.c | 5 |
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 == '-') |