Steve Dower <[email protected]> added the comment:

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.

----------

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue26227>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to