http://bugs.winehq.org/show_bug.cgi?id=20377
--- Comment #6 from Charles Davis cdavis@mines.edu 2009-11-24 14:13:27 --- (In reply to comment #5)
If you set LANG before running Wine does the locale returned by Mac framework match it? +nls log would help to see that.
Nope. Core Foundation returns en_US.UTF-8, no matter what I set LANG to. (That's the current locale on my system, as set in System Preferences.app.)
I found this line several times in the +nls log:
trace:nls:LOCALE_Init setting lcid_LC_MESSAGES to 'en'
which indicates that the real reason LANG doesn't appear to affect locale is that Wine loads strings based off of the LC_MESSAGES setting, which is set to the user's default language on Mac OS.
I know how to fix this now. What we want to do is avoid overriding LC_MESSAGES if there was a LANG variable to begin with.