]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
posix_execve(): add missing argument for "et" format in PyArg_Parse()
authorGuido van Rossum <guido@python.org>
Wed, 16 Oct 2002 16:52:11 +0000 (16:52 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 16 Oct 2002 16:52:11 +0000 (16:52 +0000)
call.  This caused mysterious crashes (hard to debug because it was
happening in a child process).

Modules/posixmodule.c

index 9d7b977f8dd6271b6ec297ae25b4e87db2835304..0f2fbb9752f10ca1a920f64350aa3494fa0ee07c 100644 (file)
@@ -2007,6 +2007,7 @@ posix_execve(PyObject *self, PyObject *args)
        for (i = 0; i < argc; i++) {
                if (!PyArg_Parse((*getitem)(argv, i),
                                 "et;execve() arg 2 must contain only strings",
+                                Py_FileSystemDefaultEncoding,
                                 &argvlist[i]))
                {
                        lastarg = i;