[New-bugs-announce] [issue10419] distutils command build_scripts fails with UnicodeDecodeError

Hagen Fürstenau 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.

----------
assignee: tarek
components: Distutils
files: surrogateescape.patch
keywords: patch
messages: 121207
nosy: eric.araujo, hagen, tarek
priority: normal
severity: normal
status: open
title: distutils command build_scripts fails with UnicodeDecodeError
type: crash
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file19607/surrogateescape.patch

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


More information about the New-bugs-announce mailing list