[issue504219] locale.resetlocale is broken
A.M. Kuchling
report at bugs.python.org
Mon Apr 13 19:19:19 CEST 2015
A.M. Kuchling added the comment:
It doesn't seem to me that we've really deprecated getdefaultlocale() -- it's not documented as such, and MAL makes the good point that getdefaultlocale() is trying to avoid calling setlocale().
Perhaps this is just a documentation problem? _build_localename() just glues together the language code and the encoding, resulting in things like en_US.ISO8859-1, which turns out to not work. So maybe we should document that getdefaultlocale() will sometimes guess wrong.
----------
nosy: +akuchling
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue504219>
_______________________________________
More information about the Python-bugs-list
mailing list