This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zart
Recipients brian.curtin, ezio.melotti, loewis, tim.golden, vstinner, zart
Date 2013-12-21.16:38:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387643912.46.0.440351313771.issue20042@psf.upfronthosting.co.za>
In-reply-to
Content
Some more fun stuff with command-line (I'm cutting output to few essential lines for easier reading):


e:\cpython\PCbuild\py.exe юникод.py
...
Called with command line: .py
run_child: about to run '"C:\Program Files (x86)\Python33\python.exe" .py'
C:\Program Files (x86)\Python33\python.exe: can't open file '.py': [Errno 2] No such file or directory
child process exit code: 2

e:\cpython\PCbuild\py.exe e:\юникод.py
...
Called with command line: e:\юникод.py
run_child: about to run '"C:\Program Files (x86)\Python33\python.exe" e:\юникод.py'
child process exit code: 0


E:\>e:\cpython\PCbuild\py.exe тест\unicode.py
...
Called with command line: ест\unicode.py
run_child: about to run '"C:\Program Files (x86)\Python33\python.exe" ест\unicode.py'
C:\Program Files (x86)\Python33\python.exe: can't open file '<unprintable file name>': [Errno 2] No such file or directory
child process exit code: 2

E:\>e:\cpython\PCbuild\py.exe e:\тест\unicode.py
...
Called with command line: e:\тест\unicode.py
run_child: about to run '"C:\Program Files (x86)\Python33\python.exe" e:\тест\unicode.py'
child process exit code: 0


E:\>e:\cpython\PCbuild\py.exe "юникод.py"
Called with command line: "юникод.py"
run_child: about to run '"C:\Program Files (x86)\Python33\python.exe" "юникод.py"'
child process exit code: 0




IOW, so long as command-line starts with ASCII character everything is fine. If not, then one or more characters gets mangled. Now I'm not sure whether it's a cmd.exe bug or C runtime one, and whether it's possible to workaround about it.
History
Date User Action Args
2013-12-21 16:38:32zartsetrecipients: + zart, loewis, vstinner, tim.golden, ezio.melotti, brian.curtin
2013-12-21 16:38:32zartsetmessageid: <1387643912.46.0.440351313771.issue20042@psf.upfronthosting.co.za>
2013-12-21 16:38:32zartlinkissue20042 messages
2013-12-21 16:38:32zartcreate