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, vstinner
Date 2018-09-13.13:42:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
For the PYTHONCOERCECLOCALE=warn case, it turns out that my preferred approach to implementing bpo-34589 also naturally ends up respecting -I and -E for that (i.e. supplying -I or -E will suppressed the warning).

However, my upcoming PR for that also reinstates and expands on my original comment that explained why it was valuable to support "PYTHONCOERCECLOCALE=0 python3 -E ..." and "PYTHONCOERCECLOCALE=0 python3 -I ...": so you can readily reproduce the way that locale coercion behaves on a platform *without* a suitable target locale (e.g. CentOS 7), even if your current platform actually does have such a locale available (e.g. Fedora).
Date User Action Args
2018-09-13 13:42:09ncoghlansetrecipients: + ncoghlan, vstinner
2018-09-13 13:42:09ncoghlansetmessageid: <>
2018-09-13 13:42:09ncoghlanlinkissue34639 messages
2018-09-13 13:42:08ncoghlancreate