Kaydet (Commit) 2b2c9735 authored tarafından Hye-Shik Chang's avatar Hye-Shik Chang

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

failure on FreeBSD.
üst d73ef06c
...@@ -1968,7 +1968,8 @@ posix_utime(PyObject *self, PyObject *args) ...@@ -1968,7 +1968,8 @@ posix_utime(PyObject *self, PyObject *args)
#endif /* Py_WIN_WIDE_FILENAMES */ #endif /* Py_WIN_WIDE_FILENAMES */
if (!have_unicode_filename && \ if (!have_unicode_filename && \
!PyArg_ParseTuple(args, "sO:utime", &path, &arg)) !PyArg_ParseTuple(args, "etO:utime",
Py_FileSystemDefaultEncoding, &path, &arg))
return NULL; return NULL;
if (arg == Py_None) { if (arg == Py_None) {
/* optional time values not given */ /* optional time values not given */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment