Message96008
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. |
|
Date |
User |
Action |
Args |
2009-12-05 21:03:38 | skrah | set | recipients:
+ skrah, mark.dickinson |
2009-12-05 21:03:38 | skrah | set | messageid: <1260047018.79.0.239850875457.issue7442@psf.upfronthosting.co.za> |
2009-12-05 21:03:37 | skrah | link | issue7442 messages |
2009-12-05 21:03:37 | skrah | create | |
|