Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
force utf8 mode when sys.stdout.encoding is ASCII
In some environments (particularly Docker), Python tends to start up with the locale set to ASCII. That means trying to print unicode characters raises an exception, like in our fancy display. Rather than requiring the user to explicitly set PYTHONIOENCODING=utf8, we rewrap stdout and stderr in UTF8 file objects. I'm a little worried that this will break something down the line... #136
- Loading branch information