STINNER Victor <victor.stin...@haypocalc.com> added the comment: Py_InitializeEx() calls PyErr_Clear() if PyCodec_Encoder() fails without checking for the exception type.
Attached initiliaze_pycodec_error.patch checks for error type: if the error is not an LookupError, display the error and exit (as done for initsite() iny my initsite.patch). ---------- Added file: http://bugs.python.org/file16491/initiliaze_pycodec_error.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3137> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com