mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
FIx unicodefilename support of posix.uname(). This fixes test_unicode_file
failure on FreeBSD.
This commit is contained in:
parent
d73ef06cd3
commit
2b2c97356f
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue