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 <>
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.
Date User Action Args
2022-03-24 04:13:41methanesetrecipients: + methane, lemburg, vstinner, ezio.melotti, eryksun
2022-03-24 04:13:41methanesetmessageid: <>
2022-03-24 04:13:41methanelinkissue47000 messages
2022-03-24 04:13:41methanecreate