[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

STINNER Victor report at bugs.python.org
Tue Oct 22 14:12:53 CEST 2013


STINNER Victor added the comment:

This issue is very close to the issue #13706 which I solved with the new function PyUnicode_DecodeLocale(): see get_locale_info() in Python/formatter_unicode.c.

We might copy/paste the code, or we should maybe add a private API to get locale information: get_locale_info() => _Py_get_locale_info() and expose the LocaleInfo structure. It may be added to unicodeobject.h for example, there is already a function related to locales: _PyUnicode_InsertThousandsGrouping().

----------
nosy: +haypo
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7442>
_______________________________________


More information about the Python-bugs-list mailing list