Message176734
| 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:50 | makegho | set | recipients:
+ makegho, ezio.melotti |
| 2012年12月01日 00:47:50 | makegho | set | messageid: <1354322870.91.0.12808888955.issue16587@psf.upfronthosting.co.za> |
| 2012年12月01日 00:47:50 | makegho | link | issue16587 messages |
| 2012年12月01日 00:47:50 | makegho | create |
|