FIx unicodefilename support of posix.uname(). This fixes test_unicode_file

failure on FreeBSD.
This commit is contained in:
Hye-Shik Chang 2004-01-04 13:54:25 +00:00
parent d73ef06cd3
commit 2b2c97356f

View 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 */