summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2007-08-04 04:10:18 +0000
committerHye-Shik Chang <hyeshik@gmail.com>2007-08-04 04:10:18 +0000
commitbdd785a5bb08da2cca45fb01d5fe21a5fabdd153 (patch)
tree40fd5f4a13d4fcee7936d9c23480d00415fb8730 /Modules
parent0ecc07c4efd5dd3b32321c8e331ea883cbdc8fdd (diff)
downloadcpython-bdd785a5bb08da2cca45fb01d5fe21a5fabdd153.tar.gz
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')
-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 c811a67eda..4542ce62f0 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;