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, serhiy.storchaka, vstinner
Date 2016-04-08.09:37:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460108227.04.0.42648387389.issue25339@psf.upfronthosting.co.za>
In-reply-to
Content
I believe the problem may be that we can't readily tell the difference between "PYTHONIOENCODING=ascii" and "PYTHONIOENCODING=ascii:strict", and in the former case we'd ideally still end up using "surrogateescape" by default.

That said, the real intent of the change was "If the detected encoding is ASCII, enable surrogateescape automatically", and detecting the POSIX locale was a proxy for that. We didn't account for PYTHONIOENCODING being used to select a more sensible encoding.
History
Date User Action Args
2016-04-08 09:37:07ncoghlansetrecipients: + ncoghlan, vstinner, serhiy.storchaka
2016-04-08 09:37:07ncoghlansetmessageid: <1460108227.04.0.42648387389.issue25339@psf.upfronthosting.co.za>
2016-04-08 09:37:07ncoghlanlinkissue25339 messages
2016-04-08 09:37:06ncoghlancreate