[issue11022] locale.setlocale() doesn't change I/O codec, os.environ
STINNER Victor
report at bugs.python.org
Thu Jan 27 23:32:55 CET 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> upon program startup, init LibC environment: setlocale(LC_ALL, "");
Python 3 does something like that: Py_InitializeEx() calls setlocale(LC_CTYPE, ""). But I (and others) consider that as a bug (see #6203 discussion): Python should not do that (nor any library) implicitly, but a *program* can do that (once) at startup (explicitly).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11022>
_______________________________________
More information about the Python-bugs-list
mailing list