[issue27971] utf-16 decoding can't handle lone surrogates

STINNER Victor report at bugs.python.org
Fri Sep 9 19:38:09 EDT 2016


STINNER Victor added the comment:

> Considering the UTF-16 codec isn't self-consistent, it's a stretch to say it's not a bug.

I didn't say that it's not a bug. I said that it's not possible to
modify a codec at this point in Python 2.7 without taking a risk of
breaking applications relying on the current behaviour. Even in Python
3, we don't do such change in minor releases, but only in major
releases.

----------

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


More information about the Python-bugs-list mailing list