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
Date 2014-04-27.19:30:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398627025.84.0.804520187603.issue21368@psf.upfronthosting.co.za>
In-reply-to
Content
Issue 19977 added "surrogateescape" to the fallback settings for the standard streams if Python 3 appears to be running under the POSIX locale (which Python 3 currently reads as setting a default encoding of ASCII, which is almost certainly wrong on any modern Linux system).

If a modern Linux system is using systemd as the process manager, then there will likely be a "/etc/locale.conf" file providing settings like LANG - due to problematic requirements in the POSIX specification, this file (when available) is likely to be a better "source of truth" regarding the system encoding than the environment where the interpreter process is started, at least when the latter is claiming ASCII as the default encoding.

See http://www.freedesktop.org/software/systemd/man/locale.conf.html for more details.
History
Date User Action Args
2014-04-27 19:30:25ncoghlansetrecipients: + ncoghlan
2014-04-27 19:30:25ncoghlansetmessageid: <1398627025.84.0.804520187603.issue21368@psf.upfronthosting.co.za>
2014-04-27 19:30:25ncoghlanlinkissue21368 messages
2014-04-27 19:30:25ncoghlancreate