summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-05-12 13:19:07 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-05-12 13:19:07 (GMT)
commit0740459248d1c01d393b52cff5f3a9b561e32e7c (patch)
tree8f95cf7c27597429dd2a8eed7b88f45184fcd545 /Misc
parente6161492fefafe039f416204289b97a084c771dc (diff)
downloadcpython-0740459248d1c01d393b52cff5f3a9b561e32e7c.zip
cpython-0740459248d1c01d393b52cff5f3a9b561e32e7c.tar.gz
cpython-0740459248d1c01d393b52cff5f3a9b561e32e7c.tar.bz2
#2798: PyArg_ParseTuple did not correctly handle the "s" code in case of unicode strings
with chars outside the 7bit ascii (s# was already correct). This is necessary to allow python run from a non-ASCII directory, and seems enough on some platforms, probably where the default PyUnicode encoding (utf-8) is also the default filesystem encoding.
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 0af5a10..e40844e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,10 @@ What's new in Python 3.0b1?
Core and Builtins
-----------------
+- Issue 2798: When parsing arguments with PyArg_ParseTuple, the "s" code now
+ allows any unicode string and returns a utf-8 encoded buffer, just like the
+ "s#" code already does. The "z" code was corrected as well.
+
- Issue 2801: fix bug in the float.is_integer method where a ValueError
was sometimes incorrectly raised.