summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-07-03 23:47:40 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-07-03 23:47:40 (GMT)
commit7d8c8a095a19ea63a313c6b937bc2bbcbc7fd6f9 (patch)
tree42729a85f88e7b736db721787e3caa2ff855f4f3 /Misc
parent3663abab59a397c971fb7e039f5f91b171be12d8 (diff)
parent6c471029821677e893a203a0127777735ff526c7 (diff)
downloadcpython-7d8c8a095a19ea63a313c6b937bc2bbcbc7fd6f9.zip
cpython-7d8c8a095a19ea63a313c6b937bc2bbcbc7fd6f9.tar.gz
cpython-7d8c8a095a19ea63a313c6b937bc2bbcbc7fd6f9.tar.bz2
(merge 3.2) Issue #12451: runpy: run_path() now opens the Python script in
binary mode, instead of text mode using the locale encoding, to support other encodings than UTF-8 (scripts using the coding cookie).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 7e2831a..d2c5a03 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -209,6 +209,10 @@ Core and Builtins
Library
-------
+- Issue #12451: runpy: run_path() now opens the Python script in binary mode,
+ instead of text mode using the locale encoding, to support other encodings
+ than UTF-8 (scripts using the coding cookie).
+
- Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
of the text mode (using the locale encoding) to avoid encoding issues.