Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3b918c37
Commit
3b918c37
authored
Nov 21, 2002
by
Walter Dörwald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment out the getcwdu implementation for --disable-unicode builds
parent
4c6c7655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Modules/posixmodule.c
Modules/posixmodule.c
+4
-0
No files found.
Modules/posixmodule.c
View file @
3b918c37
...
...
@@ -1250,6 +1250,7 @@ posix_getcwd(PyObject *self, PyObject *args)
return
PyString_FromString
(
buf
);
}
#ifdef Py_USING_UNICODE
PyDoc_STRVAR
(
posix_getcwdu__doc__
,
"getcwdu() -> path
\n\n
\
Return a unicode string representing the current working directory."
);
...
...
@@ -1287,6 +1288,7 @@ posix_getcwdu(PyObject *self, PyObject *args)
return
PyUnicode_Decode
(
buf
,
strlen
(
buf
),
Py_FileSystemDefaultEncoding
,
"strict"
);
}
#endif
#endif
#ifdef HAVE_LINK
...
...
@@ -6855,8 +6857,10 @@ static PyMethodDef posix_methods[] = {
#endif
#ifdef HAVE_GETCWD
{
"getcwd"
,
posix_getcwd
,
METH_VARARGS
,
posix_getcwd__doc__
},
#ifdef Py_USING_UNICODE
{
"getcwdu"
,
posix_getcwdu
,
METH_VARARGS
,
posix_getcwdu__doc__
},
#endif
#endif
#ifdef HAVE_LINK
{
"link"
,
posix_link
,
METH_VARARGS
,
posix_link__doc__
},
#endif
/* HAVE_LINK */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment