summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2004-01-04 13:54:25 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2004-01-04 13:54:25 (GMT)
commit2b2c97356f178579be673fad2eb8032f98d91b44 (patch)
tree02d28a9c789086096a6b82c16746eb07f8bffcc3 /Modules
parentd73ef06cd30eea20f121a79984b8c0c762cb4373 (diff)
downloadcpython-2b2c97356f178579be673fad2eb8032f98d91b44.zip
cpython-2b2c97356f178579be673fad2eb8032f98d91b44.tar.gz
cpython-2b2c97356f178579be673fad2eb8032f98d91b44.tar.bz2
FIx unicodefilename support of posix.uname(). This fixes test_unicode_file
failure on FreeBSD.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 52977fe..5c2f867 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 */