Message206763
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. |
|
Date |
User |
Action |
Args |
2013-12-21 16:38:32 | zart | set | recipients:
+ zart, loewis, vstinner, tim.golden, ezio.melotti, brian.curtin |
2013-12-21 16:38:32 | zart | set | messageid: <1387643912.46.0.440351313771.issue20042@psf.upfronthosting.co.za> |
2013-12-21 16:38:32 | zart | link | issue20042 messages |
2013-12-21 16:38:32 | zart | create | |
|