[issue15766] _imp.load_dynamic() does crash with non-ASCII path and uses the wrong encoding

2012-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f3ed5e211fcc by Victor Stinner in branch 'default': Close #15766: Catch exceptions while raising the ImportError in imp.load_dynamic() http://hg.python.org/cpython/rev/f3ed5e211fcc -- resolution: -> fixed stage: -> committed/rejected stat

[issue15766] _imp.load_dynamic() does crash with non-ASCII path and uses the wrong encoding

2012-08-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch is still insufficient. Any of the functions can fail because of memory exhaustion, so a fix should really use the standard error handling procedure. -- nosy: +loewis ___ Python tracker

[issue15766] _imp.load_dynamic() does crash with non-ASCII path and uses the wrong encoding

2012-08-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset eaac55703796 by Victor Stinner in branch 'default': Issue #15766: Fix a crash in imp.load_dynamic() on PyUnicode_FromString() failure http://hg.python.org/cpython/rev/eaac55703796 -- nosy: +python-dev __

[issue15766] _imp.load_dynamic() does crash with non-ASCII path and uses the wrong encoding

2012-08-22 Thread STINNER Victor
New submission from STINNER Victor: _imp.load_dynamic() use UTF-8 (PyUnicode_FromString) to decode the error message from dlerror(), whereas the locale encoding should be used. The path is decoded from UTF-8, whereas the filesystem encoding should be used. As a result, error_ob and path can be