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 makegho
Recipients ezio.melotti, makegho
Date 2012-12-01.00:47:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354322870.91.0.12808888955.issue16587@psf.upfronthosting.co.za>
In-reply-to
Content
If the standard streams are not used through Python, this hack can be used to work around the bug on C side:

#ifdef WIN32
#include <fcntl.h>
#endif

...

Py_Initialize();

#ifdef WIN32
_setmode(stdin->_file, O_TEXT);
_setmode(stdout->_file, O_TEXT);
_setmode(stderr->_file, O_TEXT);
#endif
History
Date User Action Args
2012-12-01 00:47:50makeghosetrecipients: + makegho, ezio.melotti
2012-12-01 00:47:50makeghosetmessageid: <1354322870.91.0.12808888955.issue16587@psf.upfronthosting.co.za>
2012-12-01 00:47:50makegholinkissue16587 messages
2012-12-01 00:47:50makeghocreate