Message105764
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). |
|
Date |
User |
Action |
Args |
2010-05-14 21:22:47 | vstinner | set | recipients:
+ vstinner, pitrou, tarek, eric.araujo |
2010-05-14 21:22:46 | vstinner | set | messageid: <1273872166.85.0.605712290877.issue8663@psf.upfronthosting.co.za> |
2010-05-14 21:22:44 | vstinner | link | issue8663 messages |
2010-05-14 21:22:44 | vstinner | create | |
|