"Sergei Butakov" butsergej@yandex.ru wrote:
If set # export LANG="POSIX" # export LC_CTYPE="ru_RU.CP1251" system_lcid (defined by LC_CTYPE) will be "ru_RU.CP1251"; user_lcid (defined by LANG) will be "en_US" - It's bug and it's visible in programs for Windows.
That's correct IMO, LANG takes the precedence over LC_TYPE. If you specify LANG="POSIX" you get what you asked for. AFAIK glibc does the same thing.