Message254405
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. |
|
Date |
User |
Action |
Args |
2015-11-09 20:56:51 | dead1ne | set | recipients:
+ dead1ne, lemburg, mhammond, terry.reedy, paul.moore, tzot, amaury.forgeotdarc, ncoghlan, pitrou, giampaolo.rodola, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, ssbarnea, flox, davidsarah, santoso.wijaya, akira, BreamoreBoy, David.Sankel, smerlin, lilydjwg, piotr.dobrogost, Drekin, steve.dower, wiz21, stijn, Jonitis, escapewindow |
2015-11-09 20:56:51 | dead1ne | set | messageid: <1447102611.38.0.529220646166.issue1602@psf.upfronthosting.co.za> |
2015-11-09 20:56:51 | dead1ne | link | issue1602 messages |
2015-11-09 20:56:51 | dead1ne | create | |
|