Skip to content

Sys.setlocale upsets windows graphics device (PR#8887)

1 message · Brian Ripley

#
I tried this by installing Thai on my laptop (WinXP) and rebooting into 
Thai, and it failed for me.  The crash is in mbstowcs in MSVCRT.dll,
and does not happen in any English locale I tried, only C.

So I am afraid it is a Windows (or VC++) bug specific to your locale, and 
the only workaround is to avoid the C locale.  (In any case, the C locale 
does not work properly on Windows, and seems equivalent in most respects 
to US English, with WinANSI encoding (rather than ASCII).)
On Mon, 22 May 2006, Prof Brian Ripley wrote: