From: Hye-Shik Chang Date: Sun, 4 Jan 2004 13:54:25 +0000 (+0000) Subject: FIx unicodefilename support of posix.uname(). This fixes test_unicode_file X-Git-Tag: v2.4a1~968 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b2c97356f178579be673fad2eb8032f98d91b44;p=thirdparty%2FPython%2Fcpython.git FIx unicodefilename support of posix.uname(). This fixes test_unicode_file failure on FreeBSD. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 52977feffcf3..5c2f86736c2a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1968,7 +1968,8 @@ posix_utime(PyObject *self, PyObject *args) #endif /* Py_WIN_WIDE_FILENAMES */ if (!have_unicode_filename && \ - !PyArg_ParseTuple(args, "sO:utime", &path, &arg)) + !PyArg_ParseTuple(args, "etO:utime", + Py_FileSystemDefaultEncoding, &path, &arg)) return NULL; if (arg == Py_None) { /* optional time values not given */