[issue24117] A small bug in GB18030 decoder.

2015-05-03 Thread Ma Lin
Changes by Ma Lin : -- type: -> behavior Added file: http://bugs.python.org/file39278/forpy3.patch ___ Python tracker ___ ___ Python-

[issue24117] A small bug in GB18030 decoder.

2015-05-03 Thread Ma Lin
New submission from Ma Lin: Hi, There is a small bug in GB18030 decoder. For 4-byte sequence, the legal range is: 0x81-0xFE for the 1st byte 0x30-0x39 for the 2nd byte 0x81-0xFE for the 3rd byte 0x30-0x39 for the 4th byte The current code forgets to check 0xFE of the 1st and 3rd byte. Therefor