[Python-checkins] python/dist/src/Modules posixmodule.c, 2.333, 2.334

loewis at users.sourceforge.net loewis at users.sourceforge.net
Tue Mar 8 10:10:34 CET 2005


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28182/Modules

Modified Files:
	posixmodule.c 
Log Message:
Convert file names of posix.access according to the file system encoding.


Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.333
retrieving revision 2.334
diff -u -d -r2.333 -r2.334
--- posixmodule.c	31 Jan 2005 17:01:59 -0000	2.333
+++ posixmodule.c	8 Mar 2005 09:10:29 -0000	2.334
@@ -1113,7 +1113,8 @@
 		PyErr_Clear();
 	}
 #endif
-	if (!PyArg_ParseTuple(args, "si:access", &path, &mode))
+	if (!PyArg_ParseTuple(args, "eti:access", 
+			      Py_FileSystemDefaultEncoding, &path, &mode))
 		return NULL;
 	Py_BEGIN_ALLOW_THREADS
 	res = access(path, mode);



More information about the Python-checkins mailing list