Convert file names of posix.access according to the file system encoding.

This commit is contained in:
Martin v. Löwis 2005-03-08 09:10:29 +00:00
parent 3e1dd3be49
commit b60ae99601
3 changed files with 6 additions and 1 deletions

View file

@ -1113,7 +1113,8 @@ posix_access(PyObject *self, PyObject *args)
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);