Ticket #2386: interpretation of LANG variable needs to be case insensitive.
commitd474cad4e35680b2976ba714c0ea344ef23b6746
authorAndrew Borodin <aborodin@vmail.ru>
Thu, 22 Mar 2012 13:37:22 +0000 (22 16:37 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Wed, 28 Mar 2012 09:10:37 +0000 (28 13:10 +0400)
tree947d35712ba2bf8b55cd33925947809ff4cf7590
parent246ce0b3508ca8142cfec6c13c5bb707a38e9bce
Ticket #2386: interpretation of LANG variable needs to be case insensitive.

On Mac OS X, in the iTerm2, when the LANG variable is set to en_US.utf-8
mcedit specifically does not correctly accept input (every character press
is interpreted as a '.'). However when LANG is set to en_US.UTF-8 mcedit
works correctly (see also http://code.google.com/p/iterm2/issues/detail?id=204).

On Linux, nl_langinfo(CODESET) returns upper case UTF-8 whether the LANG is set
to utf-8 or UTF-8.
On Mac OS X, it returns the same case as the LANG input.

So let tranform result of nl_langinfo(CODESET) to upper case unconditionally.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/strutil/strutil.c