[issue14850] The inconsistency of codecs.charmap_decode

Martin v. Löwis report at bugs.python.org
Sun Jun 10 09:59:25 CEST 2012


Martin v. Löwis <martin at v.loewis.de> added the comment:

U+FFFE is documented as representing an undefined mapping, see

http://docs.python.org/dev/c-api/unicode.html?highlight=charmap#PyUnicode_DecodeCharmap

So the base string case is correct; the derived string implementation also needs to invoke the error handler.

----------

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


More information about the Python-bugs-list mailing list