[Python-checkins] python/dist/src/Modules posixmodule.c, 2.329.2.2,
2.329.2.3
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Sun Mar 13 23:18:30 CET 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12704/Modules
Modified Files:
Tag: release24-maint
posixmodule.c
Log Message:
Backport of change to os.access to encode Unicode file names with
the file system encoding.
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.329.2.2
retrieving revision 2.329.2.3
diff -u -d -r2.329.2.2 -r2.329.2.3
--- posixmodule.c 18 Dec 2004 09:48:40 -0000 2.329.2.2
+++ posixmodule.c 13 Mar 2005 22:18:26 -0000 2.329.2.3
@@ -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