summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2010-11-22 09:00:02 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2010-11-22 09:00:02 (GMT)
commit5cbc71e50ab6fa8c3cb0cfc64ca4bf5fb174ffcc (patch)
tree715424b42ec0bcc92caf84ea98425efc6b45347e /Modules
parent249d7e3c2eb50f42295a4bf2e7d58a1e8af89c4c (diff)
downloadcpython-5cbc71e50ab6fa8c3cb0cfc64ca4bf5fb174ffcc.zip
cpython-5cbc71e50ab6fa8c3cb0cfc64ca4bf5fb174ffcc.tar.gz
cpython-5cbc71e50ab6fa8c3cb0cfc64ca4bf5fb174ffcc.tar.bz2
Issue #10459: Update CJK character names to Unicode 6.0.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/unicodedata.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index 2926c35..233f8e0 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -866,13 +866,16 @@ static char *hangul_syllables[][3] = {
{ 0, 0, "H" }
};
+/* These ranges need to match makeunicodedata.py:cjk_ranges. */
static int
is_unified_ideograph(Py_UCS4 code)
{
- return (
- (0x3400 <= code && code <= 0x4DB5) || /* CJK Ideograph Extension A */
- (0x4E00 <= code && code <= 0x9FBB) || /* CJK Ideograph */
- (0x20000 <= code && code <= 0x2A6D6));/* CJK Ideograph Extension B */
+ return
+ (0x3400 <= code && code <= 0x4DB5) || /* CJK Ideograph Extension A */
+ (0x4E00 <= code && code <= 0x9FCB) || /* CJK Ideograph */
+ (0x20000 <= code && code <= 0x2A6D6) || /* CJK Ideograph Extension B */
+ (0x2A700 <= code && code <= 0x2B734) || /* CJK Ideograph Extension C */
+ (0x2B740 <= code && code <= 0x2B81D); /* CJK Ideograph Extension D */
}
static int