STINNER Victor <victor.stin...@haypocalc.com> added the comment: Update and improve the patch: - Update the patch to py3k (replace tabs by spaces) - check if _PyUnicode_AsString() result is NULL - _Py_FindSourceFile() returns the file instead of NULL on success! - use directly "utf-8" instead of calling PyUnicode_GetDefaultEncoding() for the default source code encoding (which is constant) - use PyUnicode_FromFormat() instead of PyOS_snprintf() in tb_displayline() to avoid conversion from unicode to utf-8 and then convert utf-8 back to unicode (in PyFile_WriteString). name type is now PyObject* - reindent also PyTracebackObject structure in traceback.h, just because I hate tabs :-)
---------- Added file: http://bugs.python.org/file17702/traceback-encoding-2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6543> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com