Skip to content

Commit 598c259

Browse files
committed
Document the string as UTF-8.
1 parent 682cdbf commit 598c259

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/c-api/file.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ the :mod:`io` APIs instead.
112112
.. c:function:: PyObject *PyFile_OpenCode(const char *path)
113113
114114
Similar to :c:func:`PyFile_OpenCodeObject`, but *path* is a
115-
:c:expr:`const char*` that is decoded by the
116-
:term:`filesystem encoding and error handler`.
115+
UTF-8 encoded :c:expr:`const char*`.
117116
118117
.. versionadded:: 3.8
119118

0 commit comments

Comments
 (0)