This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients methane, vstinner
Date 2020-11-03.05:15:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604380552.24.0.265746203185.issue42236@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-11-03 05:15:52methanesetrecipients: + methane, vstinner
2020-11-03 05:15:52methanesetmessageid: <1604380552.24.0.265746203185.issue42236@roundup.psfhosted.org>
2020-11-03 05:15:52methanelinkissue42236 messages
2020-11-03 05:15:50methanecreate