[issue20571] test_codecs currently failing on several Windows buildbots

STINNER Victor report at bugs.python.org
Sun Feb 9 11:53:14 CET 2014


STINNER Victor added the comment:

The test tries to decode a partial UTF-8 bytes string. The problem is that codecs.code_page_decode() doesn't implement fully partial decoders. The decoder only supports partial decoding for a few code pages: 932, 936, 949, 950, and 1361. The partial decoding is currently based on IsDBCSLeadByteEx():
http://msdn.microsoft.com/en-us/library/windows/desktop/dd318667%28v=vs.85%29.aspx

It may be possible to enhance decoders, but it's not a regression from Python 3.3 and so can be done in Python 3.5.

Please just skip failing tests for CP_UTF8 (cp 65001) and maybe other Windows code pages in test_codecs.

(I don't have time to write a patch to skip, sorry.)

----------

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


More information about the Python-bugs-list mailing list