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 ncoghlan
Recipients methane, ncoghlan, vstinner
Date 2019-03-14.14:03:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552572222.22.0.636337446631.issue36202@roundup.psfhosted.org>
In-reply-to
Content
Victor and I were discussing the appropriate behaviour for the "What do we do if _Py_PreInitialize() hasn't been called?" case, and Victor pointed out that the potential for mojibake provides a solid rationale for going back to the Python 3.6 behaviour: disable both C locale coercion *and* UTF-8 mode, and instead leave locale management to the embedding application.

That would also get us back to the originally intended behaviour of PEP 538, where it only happens by default in the CLI app, not the runtime support library. Back when I decided that doing that would be too complicated, the _Py_PreInitialize API didn't exist yet, and it didn't occur to me that the mojibake problem would affect UTF-8 mode as well.
History
Date User Action Args
2019-03-14 14:03:42ncoghlansetrecipients: + ncoghlan, vstinner, methane
2019-03-14 14:03:42ncoghlansetmessageid: <1552572222.22.0.636337446631.issue36202@roundup.psfhosted.org>
2019-03-14 14:03:42ncoghlanlinkissue36202 messages
2019-03-14 14:03:42ncoghlancreate