[New-bugs-announce] [issue12263] punycode codec ignores the error handler argument

STINNER Victor report at bugs.python.org
Sun Jun 5 01:16:18 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

b'abc\xff'.decode('punycode', 'ignore') raises the same error than b'abc\xff'.decode('punycode', 'replace') or b'abc\xff'.decode('punycode'): it uses the strict error handler, and simply ignores the error handler.

punycodec, as idna, should raise an exception if the error handler is different than strict.

----------
messages: 137666
nosy: haypo
priority: normal
severity: normal
status: open
title: punycode codec ignores the error handler argument
versions: Python 2.7, Python 3.2, Python 3.3

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


More information about the New-bugs-announce mailing list