消息 [176734]
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 |
|
| 日期 |
用户 |
动作 |
参数 |
| 2012-12-01 00:47:50 | makegho | 修改 | recipients:
+ makegho, ezio.melotti |
| 2012-12-01 00:47:50 | makegho | 修改 | messageid: <1354322870.91.0.12808888955.issue16587@psf.upfronthosting.co.za> |
| 2012-12-01 00:47:50 | makegho | 链接 | issue16587 messages |
| 2012-12-01 00:47:50 | makegho | 创建 | |
|