Try C.UTF-8 which is also a commonly useful locale on some platforms,

from Romain Francoise.
pull/999/head
nicm 2017-07-03 08:08:30 +00:00
parent fa677fc0e1
commit 42285ac989
1 changed files with 2 additions and 1 deletions

3
tmux.c
View File

@ -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);