]> granicus.if.org Git - python/commitdiff
FIx unicodefilename support of posix.uname(). This fixes test_unicode_file
authorHye-Shik Chang <hyeshik@gmail.com>
Sun, 4 Jan 2004 13:54:25 +0000 (13:54 +0000)
committerHye-Shik Chang <hyeshik@gmail.com>
Sun, 4 Jan 2004 13:54:25 +0000 (13:54 +0000)
failure on FreeBSD.

Modules/posixmodule.c

index 52977feffcf377b78cb13bb18e612775221df64c..5c2f86736c2a709dc9ae40b469010568cd8a81be 100644 (file)
@@ -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 */