Message176734
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 |
|
| 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: <[email protected]> |
| 2012-12-01 00:47:50 | makegho | link | issue16587 messages |
| 2012-12-01 00:47:50 | makegho | create | |
|