From a91f511f2708114f8142b0e57f7230abae3b72e1 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 23 Jan 2014 23:57:19 +0000 Subject: Look for .utf8 in locale variables as well as .UTF-8 --- termkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2