[issue34421] Cannot install package with unicode module names on Windows

Serhiy Storchaka report at bugs.python.org
Sun Sep 9 03:06:29 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I would prefer to use the backslashreplace error handler rather of the unicode-escape codec. Just as few lines above, but with ASCII encoding.

    msg = msg.encode('ascii', 'backslashreplace').decode('ascii')

It is still not clear to me why the current code purposed to handle this problem doesn't work in this case. We need to find the cause and fix the existing solution.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34421>
_______________________________________


More information about the Python-bugs-list mailing list