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 <>
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.
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: <>
2020-03-13 18:28:19steve.dowerlinkissue26227 messages
2020-03-13 18:28:19steve.dowercreate