aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;