Commit 3b918c37 authored by Walter Dörwald's avatar Walter Dörwald

Comment out the getcwdu implementation for --disable-unicode builds

parent 4c6c7655
...@@ -1250,6 +1250,7 @@ posix_getcwd(PyObject *self, PyObject *args) ...@@ -1250,6 +1250,7 @@ posix_getcwd(PyObject *self, PyObject *args)
return PyString_FromString(buf); return PyString_FromString(buf);
} }
#ifdef Py_USING_UNICODE
PyDoc_STRVAR(posix_getcwdu__doc__, PyDoc_STRVAR(posix_getcwdu__doc__,
"getcwdu() -> path\n\n\ "getcwdu() -> path\n\n\
Return a unicode string representing the current working directory."); Return a unicode string representing the current working directory.");
...@@ -1287,6 +1288,7 @@ posix_getcwdu(PyObject *self, PyObject *args) ...@@ -1287,6 +1288,7 @@ posix_getcwdu(PyObject *self, PyObject *args)
return PyUnicode_Decode(buf, strlen(buf), Py_FileSystemDefaultEncoding,"strict"); return PyUnicode_Decode(buf, strlen(buf), Py_FileSystemDefaultEncoding,"strict");
} }
#endif #endif
#endif
#ifdef HAVE_LINK #ifdef HAVE_LINK
...@@ -6855,8 +6857,10 @@ static PyMethodDef posix_methods[] = { ...@@ -6855,8 +6857,10 @@ static PyMethodDef posix_methods[] = {
#endif #endif
#ifdef HAVE_GETCWD #ifdef HAVE_GETCWD
{"getcwd", posix_getcwd, METH_VARARGS, posix_getcwd__doc__}, {"getcwd", posix_getcwd, METH_VARARGS, posix_getcwd__doc__},
#ifdef Py_USING_UNICODE
{"getcwdu", posix_getcwdu, METH_VARARGS, posix_getcwdu__doc__}, {"getcwdu", posix_getcwdu, METH_VARARGS, posix_getcwdu__doc__},
#endif #endif
#endif
#ifdef HAVE_LINK #ifdef HAVE_LINK
{"link", posix_link, METH_VARARGS, posix_link__doc__}, {"link", posix_link, METH_VARARGS, posix_link__doc__},
#endif /* HAVE_LINK */ #endif /* HAVE_LINK */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment