Re: [Python-Dev] sys.stdout.write encoding failure

2008-12-15 Thread Amaury Forgeot d'Arc
Hi, Alexander Belopolsky wrote: There is currently a unit test in the trunk that fails in verbose mode: $ ./python.exe Lib/test/test_doctest.py -v ... UnicodeEncodeError: 'ascii' codec can't encode characters in position 338-339: ordinal not in range(128) Apparently, the problem is that

[Python-Dev] sys.stdout.write encoding failure

2008-12-14 Thread Alexander Belopolsky
There is currently a unit test in the trunk that fails in verbose mode: $ ./python.exe Lib/test/test_doctest.py -v ... UnicodeEncodeError: 'ascii' codec can't encode characters in position 338-339: ordinal not in range(128) Apparently, the problem is that stdout cannot encode non-ascii