Patch #612627: Add encoding attribute to file objects, and determine
the terminal encoding on Windows and Unix.
6 files changed