dead1ne added the comment:

I've tried addressing the output problem by subclassing TextIOWrapper to use 
the windows functions GetConsoleOutputCP and WideCharToMultiByte.

I've tested this as well as I can without figuring out how to install a better 
font for the windows console. It appears to work on both python 3.4 and 2.7 
although there may be an issue with 2.7 and CJK Extension B and higher 
codepoints.

Hopefully this is useful in finally resolving the issue. Also I think some 
maintenance patch for 2.7 is in order as currently it fails utterly if you set 
the console to 65001 since it doesn't recognize it. Had to wrap all print 
statements in try/except so it wouldn't fail before testing the wrapper.

----------
nosy: +dead1ne
Added file: http://bugs.python.org/file40990/wincontest.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1602>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to