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 steve.dower
Recipients abarry, eryksun, ezio.melotti, paul.moore, python-dev, serhiy.storchaka, steve.dower, tim.golden, vstinner, williamdias, zach.ware, Владимир Мартьянов
Date 2020-03-13.18:28:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584124099.9.0.71305788791.issue26227@roundup.psfhosted.org>
In-reply-to
Content
I think PyUnicode_DecodeMBCS(name, strlen(name), "surrogatepass") captures the intention better, and is less likely to break in the future (apart from all the ways it's currently broken :) )

You should be right about the workaround too.
History
Date User Action Args
2020-03-13 18:28:19steve.dowersetrecipients: + steve.dower, paul.moore, vstinner, tim.golden, ezio.melotti, python-dev, zach.ware, serhiy.storchaka, eryksun, abarry, williamdias, Владимир Мартьянов
2020-03-13 18:28:19steve.dowersetmessageid: <1584124099.9.0.71305788791.issue26227@roundup.psfhosted.org>
2020-03-13 18:28:19steve.dowerlinkissue26227 messages
2020-03-13 18:28:19steve.dowercreate