[Bug 35320] wine crash in MSVCRT__mbstowcs_l regarding locale, & other minor locale related problems

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jan 7 17:29:47 CST 2014


http://bugs.winehq.org/show_bug.cgi?id=35320

--- Comment #2 from Hin-Tak Leung <htl10 at users.sourceforge.net> ---
(In reply to comment #1)
> 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list