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 serhiy.storchaka, vstinner
Date 2018-06-21.16:03:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529597028.59.0.56676864532.issue33928@psf.upfronthosting.co.za>
In-reply-to
Content
> I don't see anything wrong.

I write a C function to test _Py_DecodeUTF8Ex():

* surrogateescape=0 fails with a decoding error as expected
* surrogateescape=1 escapes the bytes as expected as: '\udced\udcb2\udc80'

Ok, I just misunderstood the code: the decoder is fine!
History
Date User Action Args
2018-06-21 16:03:48vstinnersetrecipients: + vstinner, serhiy.storchaka
2018-06-21 16:03:48vstinnersetmessageid: <1529597028.59.0.56676864532.issue33928@psf.upfronthosting.co.za>
2018-06-21 16:03:48vstinnerlinkissue33928 messages
2018-06-21 16:03:48vstinnercreate