Message200928
| Author |
vstinner |
| Recipients |
BreamoreBoy, eric.smith, loewis, mark.dickinson, mcepl, skrah, vstinner |
| Date |
2013年10月22日.12:12:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1382443973.8.0.394763378724.issue7442@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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(). |
|