summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-07-31 21:28:03 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-07-31 21:28:03 (GMT)
commit39fd672dfe0bea76d0ae5823b864460757cb423b (patch)
tree291455c98dccac778c5780b1eb4b0cf5f0da3dca /Misc
parente7d8be80ba634fa15ece6f503c33592e0d333361 (diff)
downloadcpython-39fd672dfe0bea76d0ae5823b864460757cb423b.zip
cpython-39fd672dfe0bea76d0ae5823b864460757cb423b.tar.gz
cpython-39fd672dfe0bea76d0ae5823b864460757cb423b.tar.bz2
#3479: unichr(2**32) used to return u'\x00'.
The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int. (why doesn't gcc issue a truncation warning in this case?)
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 723d073..8aa006a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,10 @@ What's New in Python 2.6 beta 3?
Core and Builtins
-----------------
+- Issue #3479: On platforms where sizeof(int) is smaller than sizeof(long)
+ (64bit Unix, for example), unichr() would truncate its argument and return
+ u'\x00' for unichr(2**32). Now it properly raises an OverflowError.
+
- Apply security patches from Apple.
- Issue #2542: Now that issubclass() may call arbitrary code, ensure that