[issue38800] Resume position for UTF-8 codec error handler not working
Serhiy Storchaka
report at bugs.python.org
Thu Nov 14 13:13:23 EST 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
It works to me (after fixing the assertion).
What Python version do you use? In Python 2 u'\uDD00' is encodable to UTF-8, so the error handler is not called. u'\uDD00yz'.encode('utf8') gives '\xed\xb4\x80yz'.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38800>
_______________________________________
More information about the Python-bugs-list
mailing list