From 2b2c97356f178579be673fad2eb8032f98d91b44 Mon Sep 17 00:00:00 2001
From: Hye-Shik Chang <hyeshik@gmail.com>
Date: Sun, 4 Jan 2004 13:54:25 +0000
Subject: FIx unicodefilename support of posix.uname(). This fixes
 test_unicode_file failure on FreeBSD.

---
 Modules/posixmodule.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 */
-- 
cgit v0.12

