Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: This also happens if there is any kind of syntax error in the file: "SyntaxError: None" is printed without any other hint.
The (char*) filename passed to PyRun_AnyFile should be utf-8 encoded; Otherwise the file cannot be re-opened. Attached patch fixes both issues, please review. It removes one occurrence of wcstombs in favor of the PyUnicode machinery. ---------- keywords: +needs review, patch nosy: +amaury.forgeotdarc stage: -> patch review Added file: http://bugs.python.org/file12506/unicode_scriptname.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4747> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com