This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients BreamoreBoy, ezio.melotti, loewis, mdengler, steve.dower, tim.golden, vinay.sajip, vstinner, zach.ware, zart
Date 2014-08-18.16:02:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408377759.0.0.0413580864854.issue20042@psf.upfronthosting.co.za>
In-reply-to
Content
It should be fixable. In general, Unicode in the console is fine, but the CRT doesn't handle it well (as shown by the _setmode extension being able to fix it).

The 'correct' fix for Unicode in the console is at http://www.siao2.com/2010/04/07/9989346.aspx and it basically comes down to "use the Windows API and not the CRT". It's certainly fixable here, though the general fix for Python itself is more difficult because we want/need to expose the bytes interface as well (that said, #1602 seems to have a good fix right now that just happens to be easily distributable as pure Python code, so there's little motivation to merge it in, especially since it will break back-compat).

I don't know entirely whether _setmode is a correct fix here, or if the attached patch is sufficient, but it can be fixed.
History
Date User Action Args
2014-08-18 16:02:39steve.dowersetrecipients: + steve.dower, loewis, vinay.sajip, vstinner, tim.golden, ezio.melotti, zart, BreamoreBoy, zach.ware, mdengler
2014-08-18 16:02:39steve.dowersetmessageid: <1408377759.0.0.0413580864854.issue20042@psf.upfronthosting.co.za>
2014-08-18 16:02:38steve.dowerlinkissue20042 messages
2014-08-18 16:02:38steve.dowercreate