diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-03-08 09:10:29 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-03-08 09:10:29 (GMT) |
commit | b60ae9960182b8eecb26da12171917ee5a6cc1fc (patch) | |
tree | c21b0696a25d38373181c49a1bc26af41e62ad8c /Modules/posixmodule.c | |
parent | 3e1dd3be4936fc1b1c0ad6ad6609f504b4e3e7a9 (diff) | |
download | cpython-b60ae9960182b8eecb26da12171917ee5a6cc1fc.zip cpython-b60ae9960182b8eecb26da12171917ee5a6cc1fc.tar.gz cpython-b60ae9960182b8eecb26da12171917ee5a6cc1fc.tar.bz2 |
Convert file names of posix.access according to the file system encoding.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 2d3eaa3..1ca131e 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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); |