Author ncoghlan
Recipients ncoghlan
Date 2014-04-27.19:30:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 for more details.
Date User Action Args
2014-04-27 19:30:25ncoghlansetrecipients: + ncoghlan
2014-04-27 19:30:25ncoghlansetmessageid: <>
2014-04-27 19:30:25ncoghlanlinkissue21368 messages
2014-04-27 19:30:25ncoghlancreate