Martin v. Löwis <mar...@v.loewis.de> added the comment: >> Both cases indicate the users desire to change a specific locale >> setting and thus - of course - all the changes which that implies! >> So why should there be a difference? > > I don't think it's intentional. I would be +1 on changing to > getpreferredencoding(False).
That won't actually work. If you always use the C library's locale setting, most scripts will run in the C locale, and fail to read text files properly. ---------- title: locale.setlocale() doesn't change I/O codec, os.environ[] does -> locale.setlocale() doesn't change I/O codec, os.environ _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11022> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com