Message217313
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. |
|
Date |
User |
Action |
Args |
2014-04-27 19:30:25 | ncoghlan | set | recipients:
+ ncoghlan |
2014-04-27 19:30:25 | ncoghlan | set | messageid: <1398627025.84.0.804520187603.issue21368@psf.upfronthosting.co.za> |
2014-04-27 19:30:25 | ncoghlan | link | issue21368 messages |
2014-04-27 19:30:25 | ncoghlan | create | |
|