aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2014-01-23 23:57:19 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2014-01-23 23:57:19 +0000
commita91f511f2708114f8142b0e57f7230abae3b72e1 (patch)
tree7154303dea0537f6c0193688668b4d7c7a7cf8c5
parentff8d7141423d2b9d1d432b955ecae4430a7a652c (diff)
downloadtermo-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/termkey.c b/termkey.c
index cad511f..8a73683 100644
--- a/termkey.c
+++ b/termkey.c
@@ -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;