This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eric.araujo, pitrou, tarek, vstinner
Date 2010-05-14.21:22:44
SpamBayes Score 0.00026050102
Marked as misclassified No
Message-id <1273872166.85.0.605712290877.issue8663@psf.upfronthosting.co.za>
In-reply-to
Content
Conditions to reproduce the bug:
 - non ASCII directory
 - don't use make -j N (no MAKEFLAGS environment variable)
 - write make output into a pipe, eg. make 2>&1|cat

My 2 last patches are not enough: there are other functions writing non-ASCII strings to log whereas log encoding is ASCII. The right fix is to use the backslashreplace error handler for the log. Two solutions:
 a) replace sys.stdout by a new file using backslashreplace: I tried this solution for regrtest.py: #8533. My patch for regrtest.py doesn't work on Windows because of a newline issue
 b) emulate backslashreplace only in distutils log

I prefer (a) because it can be implemented in setup.py without touching distutils (tarek told me that distutils shouldn't be patched too much).

distutils_log_backslashreplace.patch implements (b).
History
Date User Action Args
2010-05-14 21:22:47vstinnersetrecipients: + vstinner, pitrou, tarek, eric.araujo
2010-05-14 21:22:46vstinnersetmessageid: <1273872166.85.0.605712290877.issue8663@psf.upfronthosting.co.za>
2010-05-14 21:22:44vstinnerlinkissue8663 messages
2010-05-14 21:22:44vstinnercreate