[issue11022] locale.setlocale() doesn't change I/O codec, os.environ
report at bugs.python.org
Thu Jan 27 23:35:50 CET 2011
Antoine Pitrou <pitrou at free.fr> 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.
Well, is it any different from today? That's an innocent question: I
don't know if there's a difference between "C locale" and "empty
title: locale.setlocale() doesn't change I/O codec, os.environ -> locale.setlocale() doesn't change I/O codec, os.environ
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list