STINNER Victor <victor.stin...@haypocalc.com> added the comment: > A better resolution IMO would be to output tracebacks on stderr instead.
Yeah, that sounds easier and safer. Attached patch writes the tracebacks to stderr. I don't remember how to reproduce this issue :-/ I guess that stdout/stderr encoding should be ASCII (eg. LANG="") and the traceback (eg. the error message) should contain a non-ASCII character. ---------- Added file: http://bugs.python.org/file17093/regrtest_traceback_stderr.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8533> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com