mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 01:04:06 +01:00
Ignore LC_ALL and LC_CTYPE if they are empty as well as unset.
This commit is contained in:
parent
16d75a6bf2
commit
b32254acda
4
tmux.c
4
tmux.c
@ -289,8 +289,8 @@ main(int argc, char **argv)
|
||||
* if not they know that output from UTF-8-capable programs may
|
||||
* be wrong.
|
||||
*/
|
||||
if ((s = getenv("LC_ALL")) == NULL) {
|
||||
if ((s = getenv("LC_CTYPE")) == NULL)
|
||||
if ((s = getenv("LC_ALL")) == NULL || *s == '\0') {
|
||||
if ((s = getenv("LC_CTYPE")) == NULL || *s == '\0')
|
||||
s = getenv("LANG");
|
||||
}
|
||||
if (s != NULL && (strcasestr(s, "UTF-8") != NULL ||
|
||||
|
Loading…
Reference in New Issue
Block a user