New submission from Hagen Fürstenau <ha...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10419>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to