Message176515
| Author |
christian.heimes |
| Recipients |
Arfrever, asvetlov, christian.heimes, ideasman42, lemburg, loewis, vstinner |
| Date |
2012年11月28日.06:30:27 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1354084227.41.0.557917685051.issue16129@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
At first glance your proposed fix looks like an easy hack to get around the issue. However it's not going to work properly. Embedded Python interpreters should isolate themselves from the user's environment. When `Py_IgnoreEnvironmentFlag` is enabled, Py_GETENV() always returns NULL.
IMHO we can't get around Py_GetIOEncoding(), Py_SetIOEncoding() and Py_IOEncoding. |
|