Ezio Melotti <[email protected]> added the comment:
> Tests fails, but I'm not sure that the tests are correct.
> b'\xe0\x00' raises 'unexpected end of data' and not 'invalid
> continuation byte'. This is terminological issue.
This might be just because it first checks if there two more bytes before
checking if they are valid, but 'invalid continuation byte' works too.
> b'\xe0\x80'.decode('utf-8', 'replace') returns one U+FFFD and not
> two. I don't think that is right.
Why not?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue8271>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com