➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 ncoghlan
收信人 Decorater, eric.snow, ncoghlan, serhiy.storchaka, vstinner
日期 2017-11-25.03:45:38
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1511581539.67.0.213398074469.issue32096@psf.upfronthosting.co.za>
In-reply-to
内容
Huh, those crashes are interesting - I'd guess that it means we have a platform-dependent dependency from Py_DecodeLocale on to Py_SetPythonHome in order to locate the encodings module. If I'm right, that dependency would then mean that embedding applications can only rely on Py_DecodeLocale to do "char *" to "wchar_t *" conversions if they can also rely on the locale encoding always being a builtin one that bypasses the search for the encodings module.

Perhaps we should be recommending temporarily doing 'setenv("PYTHONHOME", home)' (and then reverting that after calling Py_Initialize so it doesn't get inherited by subprocesses) as the preferred approach to handling platforms with "char *" based native filesystem APIs, and adding such a setting to that particular `_testembed` test?
历史
日期 用户 动作 参数
2017-11-25 03:45:39ncoghlan修改recipients: + ncoghlan, vstinner, eric.snow, serhiy.storchaka, Decorater
2017-11-25 03:45:39ncoghlan修改messageid: <1511581539.67.0.213398074469.issue32096@psf.upfronthosting.co.za>
2017-11-25 03:45:39ncoghlan链接issue32096 messages
2017-11-25 03:45:38ncoghlan创建