This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ezio.melotti, jcea, mjacob, python-dev, sbt, vstinner
Date 2013-03-08.01:27:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362706056.24.0.532914438076.issue17223@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like PyUnicode_FromUnicode() should accept invalid UTF-16 surrogates because the array module indirectly relies on that:

On Windows (16-bit wchar_t/Py_UNICODE), len(array.array('u', '\U0010ffff')) is 2 and array.array('u', '\U0010ffff')[0] is '\udbff' (lone surrogate).
History
Date User Action Args
2013-03-08 01:27:36vstinnersetrecipients: + vstinner, jcea, ezio.melotti, python-dev, sbt, mjacob
2013-03-08 01:27:36vstinnersetmessageid: <1362706056.24.0.532914438076.issue17223@psf.upfronthosting.co.za>
2013-03-08 01:27:36vstinnerlinkissue17223 messages
2013-03-08 01:27:35vstinnercreate