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, vstinner
Date 2013-02-25.18:23:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361816635.4.0.926589571581.issue17223@psf.upfronthosting.co.za>
In-reply-to
Content
If the problem is that PyUnicode_FromUnicode() rejects character outside range [U+0000; U+10ffff], it would be better to use the byte string '\xff' * sizeof_PY_UNICODE. U+66647361 may become valid in a future version of Unicode, I don't thing that U+FFFFFFFF would become valid.

sizeof_PY_UNICODE is ctypes.sizeof(ctypes.c_wchar) since Python 3.3. '\xff' * 4 works on any platform.
History
Date User Action Args
2013-02-25 18:23:55vstinnersetrecipients: + vstinner, jcea, ezio.melotti, mjacob
2013-02-25 18:23:55vstinnersetmessageid: <1361816635.4.0.926589571581.issue17223@psf.upfronthosting.co.za>
2013-02-25 18:23:55vstinnerlinkissue17223 messages
2013-02-25 18:23:55vstinnercreate