[Python-checkins] r86686 - in python/branches/release27-maint: Misc/NEWS Modules/unicodedata.c

martin.v.loewis python-checkins at python.org
Mon Nov 22 11:53:46 CET 2010


Author: martin.v.loewis
Date: Mon Nov 22 11:53:46 2010
New Revision: 86686

Log:
Issue #10459: Update CJK character names to Unicode 5.2.


Modified:
   python/branches/release27-maint/Misc/NEWS
   python/branches/release27-maint/Modules/unicodedata.c

Modified: python/branches/release27-maint/Misc/NEWS
==============================================================================
--- python/branches/release27-maint/Misc/NEWS	(original)
+++ python/branches/release27-maint/Misc/NEWS	Mon Nov 22 11:53:46 2010
@@ -13,6 +13,8 @@
 Library
 -------
 
+- Issue #10459: Update CJK character names to Unicode 5.2.
+
 - Issue #4493: urllib2 adds '/' in front of path components which does not
   start with '/. Common behavior exhibited by browsers and other clients.
 

Modified: python/branches/release27-maint/Modules/unicodedata.c
==============================================================================
--- python/branches/release27-maint/Modules/unicodedata.c	(original)
+++ python/branches/release27-maint/Modules/unicodedata.c	Mon Nov 22 11:53:46 2010
@@ -869,8 +869,9 @@
 {
     return (
         (0x3400 <= code && code <= 0x4DB5) || /* CJK Ideograph Extension A */
-        (0x4E00 <= code && code <= 0x9FBB) || /* CJK Ideograph */
-        (0x20000 <= code && code <= 0x2A6D6));/* CJK Ideograph Extension B */
+        (0x4E00 <= code && code <= 0x9FCB) || /* CJK Ideograph, Unicode 5.2 */
+        (0x20000 <= code && code <= 0x2A6D6) || /* CJK Ideograph Extension B */
+        (0x2A700 <= code && code <= 0x2B734));  /* CJK Ideograph Extension C */
 }
 
 static int


More information about the Python-checkins mailing list