➜

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.

作者 ncoghlan
收信人 eric.araujo, martin.panter, ncoghlan, skrah, vstinner
日期 2014-05-03.04:29:13
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <CADiSq7fV2-yOji9Y7XVaUXSiDFDL1gHm-+1=SxmY5YbrqTHqxA@mail.gmail.com>
In-reply-to <1399057862.26.0.351789499422.issue21368@psf.upfronthosting.co.za>
内容
That's the problem - even on UTF-8 systems, Linux programs will often be
started in a misconfigured environment: the POSIX locale. Python 2 doesn't
try to interpret the binary data as text, so it doesn't care. Python 3
*does* care, since it automatically converts several pieces of OS provided
data to text using the locale encoding.

systemd tackles that by adding the extra config file to ensure *all* the
environments it creates get the right config, and to provide a more
reliable "source of truth" as to the actual likely encoding of system
interfaces.

However, a fair bit of groundwork is needed to avoid any innate reliance on
the locale encoding before we can reliably override it by default, so this
issue is unlikely to go anywhere before PEP 432 is implemented (and even
then, actually changing the behaviour would be a separate discussion).
历史
日期 用户 动作 参数
2014-05-03 04:29:15ncoghlan修改recipients: + ncoghlan, vstinner, eric.araujo, skrah, martin.panter
2014-05-03 04:29:15ncoghlan链接issue21368 messages
2014-05-03 04:29:13ncoghlan创建