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 vstinner
Recipients benjamin.peterson, ocean-city, pitrou, vstinner
Date 2009-04-05.00:39:56
SpamBayes Score 0.00026025722
Marked as misclassified No
Message-id <1238891998.79.0.200853751869.issue5410@psf.upfronthosting.co.za>
In-reply-to
Content
> There seems to be a problem with ungetwch()

I tested Visual C++ Express 2008 and it looks like _ungetwch() only 
keep 8 lower bits (like _ungetwch(x & 255)). But it's a bug in 
Microsoft library, not in Python code (I added some printf to be 
sure).

My patch (msvcrt_wchar.patch) makes the situation better, but it's not 
perfect because of a bug in Microsoft's library.

msvcrt.getwch() works correctly with characters with code > 255 (eg. 
euro sign, U+20ac, 8364 in decimal).
History
Date User Action Args
2009-04-05 00:39:59vstinnersetrecipients: + vstinner, pitrou, ocean-city, benjamin.peterson
2009-04-05 00:39:58vstinnersetmessageid: <1238891998.79.0.200853751869.issue5410@psf.upfronthosting.co.za>
2009-04-05 00:39:56vstinnerlinkissue5410 messages
2009-04-05 00:39:56vstinnercreate