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 <rep...@bugs.python.org>
<http://bugs.python.org/issue7442>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to