diff options
author | nicm <nicm> | 2017-07-03 08:08:30 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-07-03 08:08:30 +0000 |
commit | 42285ac9893f6ce82b44d00061a4ef702ef22cbe (patch) | |
tree | 3e25ecbe034d03b10883137e052a553b4f8437e9 /tmux.c | |
parent | fa677fc0e15e32094d3e6b6816acd88e6bfbb429 (diff) | |
download | rtmux-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |