New submission from Antoine Pitrou <[EMAIL PROTECTED]>: Lib/encodings/idna.py claims to do the following when `input` is a string object (lines 183-184, and see comment line 178: "IDNA allows decoding to operate on Unicode strings, too"):
# Force to bytes input = bytes(input) This is obviously wrong, lacking an encoding parameter. It doesn't seem to be covered in the test suite, and I don't know what the proper semantics should be, so I leave it to someone else to find a fix. ---------- components: Library (Lib), Unicode messages: 68931 nosy: pitrou severity: normal status: open title: Wrong str->bytes conversion in Lib/encodings/idna.py type: behavior versions: Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3232> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com