This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients mark.dickinson, skrah
Date 2009-12-05.21:03:37
SpamBayes Score 0.00016751242
Marked as misclassified No
Message-id <>
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
(, which
takes a locale parameter. But I don't
find such a thing on Linux.
Date User Action Args
2009-12-05 21:03:38skrahsetrecipients: + skrah, mark.dickinson
2009-12-05 21:03:38skrahsetmessageid: <>
2009-12-05 21:03:37skrahlinkissue7442 messages
2009-12-05 21:03:37skrahcreate