aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2017-07-03 08:08:30 +0000
committernicm <nicm>2017-07-03 08:08:30 +0000
commit42285ac9893f6ce82b44d00061a4ef702ef22cbe (patch)
tree3e25ecbe034d03b10883137e052a553b4f8437e9 /tmux.c
parentfa677fc0e15e32094d3e6b6816acd88e6bfbb429 (diff)
downloadrtmux-42285ac9893f6ce82b44d00061a4ef702ef22cbe.tar.gz
rtmux-42285ac9893f6ce82b44d00061a4ef702ef22cbe.tar.bz2
rtmux-42285ac9893f6ce82b44d00061a4ef702ef22cbe.zip
Try C.UTF-8 which is also a commonly useful locale on some platforms,
from Romain Francoise.
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 9c32fa0a..07aeeaeb 100644
--- a/tmux.c
+++ b/tmux.c
@@ -196,7 +196,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);