[Python-Dev] Add a new "locale" codec?

Victor Stinner victor.stinner at haypocalc.com
Wed Feb 8 01:02:20 CET 2012


Hi,
I added PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and
PyUnicode_EncodeLocale() to Python 3.3 to fix bugs. I hesitate to
expose this codec in Python: it can be useful is some cases,
especially if you need to interact with C functions.
The glib library has functions using the *current* locale encoding,
g_locale_from_utf8() for example.
Related issue with more information:
http://bugs.python.org/issue13619
Victor


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /