[New-bugs-announce] [issue10419] distutils command build_scripts fails with UnicodeDecodeError
report at bugs.python.org
Sun Nov 14 21:32:33 CET 2010
New submission from Hagen Fürstenau <hagen at zhuliguan.net>:
As suggested in issue 9561, I'm creating a new bug for the encoding problem in build_scripts: If a script file can't be decoded with the (locale dependent) standard encoding, then "build_scripts" fails with UnicodeDecodeError. Reproducable e.g. with LANG=C and a script file containing non ASCII chars near the beginning (so that they're read on a single readline()).
Attaching a patch that uses "surrogateescape", as proposed for issue 6011.
nosy: eric.araujo, hagen, tarek
title: distutils command build_scripts fails with UnicodeDecodeError
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file19607/surrogateescape.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce