Inada Naoki <songofaca...@gmail.com> added the comment:

I don't think UTF-8 mode should override os.device_encoding() on Windows.

UTF-8 mode can be used to ignore legacy locale encoding, and 
os.device_encoding() uses the locale encoding on Unix. So overriding it make 
sense.

But locale encoding and console cp are different on Windows. Users may want to 
know console cp even when they want to use UTF-8 by default for reading/writing 
text files.

----------
nosy: +methane

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42236>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to