Message90618
- Apache is not a Console application, so the Windows GetConsoleCP()
function returns zero (and os.device_encoding(1) returns 'cp0').
- pythonw.exe has no console either; but in pythonrun.c, the test
(fileno(stdin) < 0) is true, and the standard streams are all set to None.
- It is probable that Apache has redefined stdin & co, so the previous
test does not work there.
As a workaround, I suggest to set the environment variable
PYTHONIOENCODING before starting Apache, or before the call to
Py_Initialize. |
|
| Date |
User |
Action |
Args |
| 2009-07-17 11:20:12 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, grahamd |
| 2009-07-17 11:20:12 | amaury.forgeotdarc | set | messageid: <[email protected]> |
| 2009-07-17 11:20:10 | amaury.forgeotdarc | link | issue6501 messages |
| 2009-07-17 11:20:10 | amaury.forgeotdarc | create | |
|