Module: wine Branch: master Commit: 7a1522a20f45a39e9f127c9f2f83638ff600f5d9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a1522a20f45a39e9f127c9f2f...
Author: Alexandre Julliard <julliard at winehq.org> Date: Mon Nov 13 14:27:00 2006 +0100
kernel32: Use LC_NUMERIC instead of LC_ALL to determine the user locale.
Passing LC_ALL to setlocale() doesn't do what we want.
Why LC_NUMERIC? Maybe, LC_MESSAGES more suits for this role? Or LANG env?
-- Kirill K. Smirnov
"Kirill K. Smirnov" lich@math.spbu.ru writes:
Why LC_NUMERIC? Maybe, LC_MESSAGES more suits for this role? Or LANG env?
LC_MESSAGES is used for the system locale already. LANG cannot be accessed by setlocale(), the idea is to not depend on the specific way that setlocale() determines the locale from the environment. But of course setting LANG will work if you don't specifically set LC_NUMERIC to something else.