Ticket #2386: interpretation of LANG variable needs to be case insensitive.
commit91ff90f87b3ea7dd17974097a7b6e67190db11cc
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:00:22 +0000 (28 13:00 +0400)
tree55275ca424597713061426862a2b5e38e3b491d3
parent835f72fcaff24d153066984bd4eefa36f0551b27
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