[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

STINNER Victor report at bugs.python.org
Tue May 31 00:12:22 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

- I added tests for the HZ codec and some ISO 2022 codecs: #12057
 - I fixed IncrementalEncoder.encode() (of multibytecodec ): #12100
 - I fixed IncrementalEncoder.reset() (of multibytecodec): #12171

I can now work confidently on this issue. I will try to patch all CJK decoders to only replace 1 invalid byte by U+FFFD (and not 2, 3 or 4 bytes) and try to write a test for each case (each byte sequence generating a different error).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12016>
_______________________________________


More information about the Python-bugs-list mailing list