summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-26 15:41:32 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-26 15:41:32 (GMT)
commit29dacf2e97314a16db3f2bef492d1c46f39ad656 (patch)
treeeee087480c15254bac655e9768dff58d0e2201ec /Misc
parenta8efc9601da1fb1402253124767edbb1b1270a8b (diff)
downloadcpython-29dacf2e97314a16db3f2bef492d1c46f39ad656.zip
cpython-29dacf2e97314a16db3f2bef492d1c46f39ad656.tar.gz
cpython-29dacf2e97314a16db3f2bef492d1c46f39ad656.tar.bz2
Issue #15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and
PyUnicode_EncodeCodePage() now raise an exception if the object is not an Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case on platforms other than Windows. Patch written by Campbell Barton.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS5
2 files changed, 6 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 6a02314..b6ccdc6 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -89,6 +89,7 @@ Richard Barran
Cesar Eduardo Barros
Des Barry
Ulf Bartelt
+Campbell Barton
Don Bashford
Pior Bastida
Nick Bastin
diff --git a/Misc/NEWS b/Misc/NEWS
index d9acd56..dd2fe53 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,11 @@ Release date: TBA
Core and Builtins
-----------------
+- Issue #15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and
+ PyUnicode_EncodeCodePage() now raise an exception if the object is not an
+ Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case on
+ platforms other than Windows. Patch written by Campbell Barton.
+
- Issue #21408: The default __ne__() now returns NotImplemented if __eq__()
returned NotImplemented. Original patch by Martin Panter.