mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix gb18030 codec's bug that doesn't map two-byte characters on
GB18030 extension in encoding. (bug reported by Bjorn Stabell)
This commit is contained in:
parent
766d880a2f
commit
f3e93a0268
4 changed files with 26 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue