[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

STINNER Victor report at bugs.python.org
Sun Sep 12 10:09:09 CEST 2010

STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> Still happens with r84709 on PPC Tiger 3.x

It's not the same error, PYTHONWARNINGS is decoded from the wrong encoding: locale encodind instead of utf-8. r84731 should fix this bug (at least, it restores the encoding used because my last commit, r84694).

With r84731, Python decodes PYTHONWARNINGS with strict error handler on Mac OS X, instead of surrogateescape error handler. I don't think that it matters because PYTHONWARNINGS is not supposed to contain raw bytes, and anyway, Mac OS X rejects invalid utf-8 filenames.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list