[issue10419] distutils command build_scripts fails with UnicodeDecodeError

STINNER Victor report at bugs.python.org
Wed May 11 01:06:22 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Issue fixed in Python 3.1, 3.2, 3.3.

Thanks to Arfrever, I realized that this issue not only concerns the compilation of Python itself with a non-ASCII prefix (issue #6011), but the installation of any Python script containing a non-ASCII character. So I also fixed it in Python 3.1. I replaced os.fsencode(name) by name.encode(sys.getfilesystemencoding(), 'surrogateescape') in 3.1.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10419>
_______________________________________


More information about the Python-bugs-list mailing list