[issue12263] punycode codec ignores the error handler argument
Martin v. Löwis
report at bugs.python.org
Tue Jun 21 22:15:36 CEST 2011
Martin v. Löwis <martin at v.loewis.de> added the comment:
> Oh, I forgot to give a little bit more details.
>
> b'abc\xff-'.decode('punycode', 'ignore') and
> b'abc\xff-'.decode('punycode', 'replace') raise a UnicodeDecodeError:
> the error handler is just useless (ignored) here.
That's not my point:
b"foo".decode("punycode","replace")
currently succeeds, but raises an UnicodeError under the patch.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12263>
_______________________________________
More information about the Python-bugs-list
mailing list