> Sorry, issue20599_ascii_ioencoding.patch doesn't fix the issue.
Sorry again, I didn't read issue20599_ascii_ioencoding.patch carefully: it doesn't make sense to use the isolated mode and to set a Python environment variable (PYTHONIOENCODING). The purpose of the isolated mode is to ignore all Python environment variables...
I (hope I) fixed the test, but in fact, the test showed another bug: print() cannot be used during Python exit in destructor. It means for example that Python may not be able to display errors at exit.
I don't know if this issue should be closed. Maybe a new issue should be opened to address the codec issue at exit? |