[pypy-commit] pypy py3k: fsdecode sys.executable/argv
pjenvey
noreply at buildbot.pypy.org
Fri Mar 1 03:04:10 CET 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r61882:84683ee69770
Date: 2013-02-28 17:59 -0800
http://bitbucket.org/pypy/pypy/changeset/84683ee69770/
Log: fsdecode sys.executable/argv
diff --git a/pypy/goal/targetpypystandalone.py b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -49,8 +49,9 @@
try:
try:
space.call_function(w_run_toplevel, w_call_startup_gateway)
- w_executable = space.wrap(argv[0])
- w_argv = space.newlist([space.wrap(s) for s in argv[1:]])
+ w_executable = space.fsdecode(space.wrapbytes(argv[0]))
+ w_argv = space.newlist([space.fsdecode(space.wrapbytes(s))
+ for s in argv[1:]])
w_exitcode = space.call_function(w_entry_point, w_executable, w_argv)
exitcode = space.int_w(w_exitcode)
# try to pull it all in
More information about the pypy-commit
mailing list