diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2014-01-23 23:57:19 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2014-01-23 23:57:19 +0000 |
commit | a91f511f2708114f8142b0e57f7230abae3b72e1 (patch) | |
tree | 7154303dea0537f6c0193688668b4d7c7a7cf8c5 | |
parent | ff8d7141423d2b9d1d432b955ecae4430a7a652c (diff) | |
download | termo-a91f511f2708114f8142b0e57f7230abae3b72e1.tar.gz termo-a91f511f2708114f8142b0e57f7230abae3b72e1.tar.xz termo-a91f511f2708114f8142b0e57f7230abae3b72e1.zip |
Look for .utf8 in locale variables as well as .UTF-8
-rw-r--r-- | termkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -385,7 +385,7 @@ TermKey *termkey_new(int fd, int flags) char *e; if(((e = getenv("LANG")) || (e = getenv("LC_MESSAGES")) || (e = getenv("LC_ALL"))) && - strstr(e, "UTF-8")) + (strstr(e, ".UTF-8") || strstr(e, ".utf8"))) flags |= TERMKEY_FLAG_UTF8; else flags |= TERMKEY_FLAG_RAW; |