http://bugs.winehq.org/show_bug.cgi?id=35320
--- Comment #2 from Hin-Tak Leung htl10@users.sourceforge.net --- (In reply to comment #1)
- (In reply to comment #0)
- there are locale-related warning messages from R on start up when running
under wine.
This is not a wine bug. Similar warnings will be displayed on windows when you set LC_ALL=en_GB.utf8
You are right that similar warnings is displayed on windows when you try to set LC_ALL=en_GB.utf8 *manually*. However, the warnings happens *without user action* - i.e. the application itself is trying to detect the locale of the host, when it starts. So wine is not emulating that part of windows like windows does.
ALso this is rather a side-issue, compared to the main one, and the 2nd one: a course of action which works without incidents on Vista, crashes wine; also setting "Chinese_China.950" *manually* on English Vista works, but fails on wine.
I know running R on English locale Vista is probably quite different from running windows R on wine on en_GB.UTF8 linux. But setlocale(, NULL) from within a windows application probably should returns something that looks like it is from windows?
FWIW, R is GPL and the recommended way of building it for windows is mingw so it probably doesn't not use anything windows-specific. I just had a look inside - while I can't work out how/why it tries to setlocale on start up, it seems that the manual setlocale/getlocale code is nothing more than wrappers around the ANSI setlocale calls.