summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-12-08 23:01:27 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-12-08 23:01:27 (GMT)
commit620c48b7ea7a1ad3af23725afdac1e6a2b3e6cef (patch)
tree4fbac6f2150c5a62345aca7a52c4c121914935c3 /Misc
parent589ecda56eb23937ba871734598cda8f11395389 (diff)
downloadcpython-620c48b7ea7a1ad3af23725afdac1e6a2b3e6cef.zip
cpython-620c48b7ea7a1ad3af23725afdac1e6a2b3e6cef.tar.gz
cpython-620c48b7ea7a1ad3af23725afdac1e6a2b3e6cef.tar.bz2
Issue #17429: platform.linux_distribution() now decodes files from the UTF-8
encoding with the surrogateescape error handler, instead of decoding from the locale encoding in strict mode. It fixes the function on Fedora 19 which is probably the first major distribution release with a non-ASCII name. Patch written by Toshio Kuratomi.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS6
2 files changed, 7 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 2c957e3..486e2af 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -689,6 +689,7 @@ Steven Kryskalla
Andrew Kuchling
Dave Kuhlman
Jon Kuhn
+Toshio Kuratomi
Vladimir Kushnir
Erno Kuusela
Ross Lagerwall
diff --git a/Misc/NEWS b/Misc/NEWS
index 5eacf9c..3596b4e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -18,6 +18,12 @@ Core and Builtins
Library
-------
+- Issue #17429: platform.linux_distribution() now decodes files from the UTF-8
+ encoding with the surrogateescape error handler, instead of decoding from the
+ locale encoding in strict mode. It fixes the function on Fedora 19 which is
+ probably the first major distribution release with a non-ASCII name. Patch
+ written by Toshio Kuratomi.
+
- Issue #19929: Call os.read with 32768 within subprocess.Popen.communicate
rather than 4096 for efficiency. A microbenchmark shows Linux and OS X
both using ~50% less cpu time this way.