Message 174606 - Python tracker
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.