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 ncoghlan, ned.deily, vstinner
Date 2018-09-11.14:20:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The entire change affecting the PEP 538 implementation in needs to be reverted: the locale should be coerced before *ANY* calls are made to Py_DecodeLocale, as the whole point of the architecture of the PEP implementation was to ensure that *nothing ever gets decoded incorrectly in the first place*.

I just initially missed that in Victor's enthusiasm for fixing the incorrect decodings that can arise in the absence of locale coercion he'd *introduced* incorrect decoding into the locale coercion case.
Date User Action Args
2018-09-11 14:20:56ncoghlansetrecipients: + ncoghlan, vstinner, ned.deily
2018-09-11 14:20:56ncoghlansetmessageid: <>
2018-09-11 14:20:56ncoghlanlinkissue34589 messages
2018-09-11 14:20:56ncoghlancreate