From: Guido van Rossum Date: Wed, 16 Oct 2002 16:52:11 +0000 (+0000) Subject: posix_execve(): add missing argument for "et" format in PyArg_Parse() X-Git-Tag: v2.3c1~3765 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e700d24e9022a75922dd8d7a6fdb4bd522beedf;p=thirdparty%2FPython%2Fcpython.git posix_execve(): add missing argument for "et" format in PyArg_Parse() call. This caused mysterious crashes (hard to debug because it was happening in a child process). --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 9d7b977f8dd6..0f2fbb9752f1 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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;