Stefan Krah added the comment: I think this is what went wrong on Windows in the previous test (see Lib/test/test_cmd_line_script.py:43):
>>> s = '\udcf1\udcea\udcf0\udce8\udcef\udcf2' >>> f = open(s, "w") >>> f.write("print('%s\\n' % __file__)") >>> f.close() C:\Users\stefan\pydev\cpython>PCbuild\amd64\python_d.exe ïïïïï� <encoding error> So __file__ isn't set correctly, which looks like a bug to me. I'm not sure whether it should be part of this issue or if we should open a new one. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16218> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com