[issue11022] locale.setlocale() doesn't change I/O codec, os.environ
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>
More information about the Python-bugs-list