[issue20042] Python Launcher, Windows, fails on scripts w/ non-latin names

Terry J. Reedy report at bugs.python.org
Wed Jul 5 21:26:45 EDT 2017


Terry J. Reedy added the comment:

Is this still relevant or should it be closed?

On Win10, I created a short script юникод.py using Save As from IDLE.

py -2 юникод.py produces
C:\Programs\Python27\python.exe: can't open file '??????.py': [Errno 22] Invalid argument
If the patch fixes 2.7 and looks okay, maybe we should apply. If 'no' or 'no', maybe we should forget 2.7 running files with such names.

On 3.5 and 3.6, the file runs without issue.  The issue was opened with 3.3; 3.5 switched to a much more recent compiler, and I did not see any indication in the messages that this was tested on 3.5 before it was added.  So perhaps for 3.5+, this is out-of-date.

----------
nosy: +terry.reedy -BreamoreBoy
versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20042>
_______________________________________


More information about the Python-bugs-list mailing list