(original) (raw)
sys.stdout.encoding must never be None, it must be a str. If it is None, it is a regression. I modified Python (maybe in 3.2) to ensure that .encoding is always set.
For your failure: what is the locale encoding? What are the values of LC\_ALL, LANG, LC\_CTYPES and PYTHONIOENCODING env vars?
I will try to reproduce the issue.
Victor