summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2007-08-04 04:10:18 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2007-08-04 04:10:18 (GMT)
commitf3e93a02688849da484a6677320a84c913461fd4 (patch)
tree939499b8cef1710a91d1255b2333673aa04f9c3f /Modules/cjkcodecs
parent766d880a2fd0bcb4fca187db255763506e10f96b (diff)
downloadcpython-f3e93a02688849da484a6677320a84c913461fd4.zip
cpython-f3e93a02688849da484a6677320a84c913461fd4.tar.gz
cpython-f3e93a02688849da484a6677320a84c913461fd4.tar.bz2
Fix gb18030 codec's bug that doesn't map two-byte characters on
GB18030 extension in encoding. (bug reported by Bjorn Stabell)
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r--Modules/cjkcodecs/_codecs_cn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/cjkcodecs/_codecs_cn.c b/Modules/cjkcodecs/_codecs_cn.c
index c811a67..4542ce6 100644
--- a/Modules/cjkcodecs/_codecs_cn.c
+++ b/Modules/cjkcodecs/_codecs_cn.c
@@ -197,6 +197,7 @@ ENCODER(gb18030)
REQUIRE_OUTBUF(2)
GBK_ENCODE(c, code)
+ else TRYMAP_ENC(gb18030ext, code, c);
else {
const struct _gb18030_to_unibmp_ranges *utrrange;