STINNER Victor <[EMAIL PROTECTED]> added the comment: The fix can be changed to be specific to POSIX system: + if name == 'posix' \ + and isinstance(file, bytes): + encoding = sys.getfilesystemencoding() + PATH = (bytes(dir, encoding) for dir in PATH)
My example was incorrect. The good example is: python -c "import os; os.execvp('pwd', ['pwd']) _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4035> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com