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 eryksun, ezio.melotti, lemburg, methane, vstinner
Date 2022-03-24.04:13:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648095221.2.0.297295366393.issue47000@roundup.psfhosted.org>
In-reply-to
Content
I am not sure about we really need "locale encoding at Python startup".

For this issue, I don't want to change `encoding="locale"` behavior except ignore UTF-8 mode. So what I want is "current locale encoding" or 
 ANSI codepage on Windows.

On the other hand, I know Eryk wants to support locale on Windows. So `locale.get_encoding()` might return current locale encoding (not ANSI codepage) even on Windows.
If so, I will use `sys.getlocaleencoding()` to implement `encoding="locale"` to keep using ANSI codepage, instead of adding yet another "get locale encoding" function.
History
Date User Action Args
2022-03-24 04:13:41methanesetrecipients: + methane, lemburg, vstinner, ezio.melotti, eryksun
2022-03-24 04:13:41methanesetmessageid: <1648095221.2.0.297295366393.issue47000@roundup.psfhosted.org>
2022-03-24 04:13:41methanelinkissue47000 messages
2022-03-24 04:13:41methanecreate