Comment 7 for bug 448158

Revision history for this message
Philip Muškovac (yofel) wrote :

Ok, after some debugging it turnes out that python2.6 sys.stderr.write() can't handle unicode characters that aren't converted to bytes first:

sys.stderr.write(str(u'\xfc'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 0: ordinal not in range(128)

sys.stderr.write(u'\xfc'.encode('utf-8'))
ü