Look for .utf8 in locale variables as well as .UTF-8

This commit is contained in:
Paul LeoNerd Evans 2014-01-23 23:57:19 +00:00
parent ff8d714142
commit a91f511f27
1 changed files with 1 additions and 1 deletions

View File

@ -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;