Author skrah
Recipients mark.dickinson, skrah
Date 2009-12-05.21:03:37
SpamBayes Score 0.000167512
Marked as misclassified No
Message-id <1260047018.79.0.239850875457.issue7442@psf.upfronthosting.co.za>
In-reply-to
Content
This fails in _localemodule.c: str2uni(). mbstowcs(NULL, s, 0) is
LC_CTYPE sensitive, but LC_CTYPE is UTF-8 in my terminal.

If I set LC_CTYPE and LC_NUMERIC together, things work.

This raises the question: If LC_CTYPE and LC_NUMERIC differ (and
since they are separate entities I assume they may differ), what
is the correct way to convert the separator and the decimal point?


a) call setlocale(LC_CTYPE, setlocale(LC_NUMERIC, NULL)) before
   mbstowcs. This is not really an option.


b) use some kind of _mbstowcs_l
(http://msdn.microsoft.com/en-us/library/k1f9b8cy(VS.80).aspx), which
takes a locale parameter. But I don't
find such a thing on Linux.
History
Date User Action Args
2009-12-05 21:03:38skrahsetrecipients: + skrah, mark.dickinson
2009-12-05 21:03:38skrahsetmessageid: <1260047018.79.0.239850875457.issue7442@psf.upfronthosting.co.za>
2009-12-05 21:03:37skrahlinkissue7442 messages
2009-12-05 21:03:37skrahcreate