STINNER Victor <victor.stin...@haypocalc.com> added the comment: > Hum, I'm not sure that my patch works if the locale encoding is not > UTF-8: import.c manipulates path in the filesystem encoding, whereas > PyTokenizer_FindEncodingFilename() expects UTF-8 filename.
Thanks to my work on #3080, the import machinery (and other functions using Python modules and filenames) manipulates filenames as Unicode, and so I don't have to care about the filename encoding anymore. 6e9dc970ac0e (of issue #10785) fixed the crash, 7b8d625eb6e4 added the filename into the SyntaxError. ---------- resolution: accepted -> fixed status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9319> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com