summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-07-03 10:01:14 +0100
committerThomas Adam <thomas@xteddy.org>2017-07-03 10:01:14 +0100
commit4e01036cb67e4c9297f7e220e575b52b13252352 (patch)
treeffda1cb385ecedb360a737858a4788506d5e945b /tmux.c
parent6fba9a39b7c747dcbd83ef0e50c84b7cd3b547c9 (diff)
parent28687f2d55fb30654a7164bf1445f47b052ea115 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index 14e3a4dd..f4a2d7f1 100644
--- a/tmux.c
+++ b/tmux.c
@@ -193,7 +193,8 @@ main(int argc, char **argv)
int opt, flags, keys;
const struct options_table_entry *oe;
- if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) {
+ if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL &&
+ setlocale(LC_CTYPE, "C.UTF-8") == NULL) {
if (setlocale(LC_CTYPE, "") == NULL)
errx(1, "invalid LC_ALL, LC_CTYPE or LANG");
s = nl_langinfo(CODESET);