From ecd3b3ce586e228059ba6a2e926cf2129c7e2f5a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 1 Mar 2016 12:02:09 +0000 Subject: Use system wcwidth() instead of carrying around UTF-8 width tables. --- usr.bin/tmux/tmux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux/tmux.c') 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 @@ -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 == '-') -- cgit v1.2.3