Skip to content

Commit 240e705

Browse files
[3.15] Mention PyUnicode_EncodeFSDefault in PyConfig.filesystem_encoding docs (GH-159297) (GH-159541)
Mention `PyUnicode_EncodeFSDefault` in `PyConfig.filesystem_encoding` docs (GH-159297) (cherry picked from commit 49fc7ed) Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent eed346a commit 240e705

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎Doc/c-api/init_config.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,10 @@ PyConfig
14301430
14311431
See also the :c:member:`~PyConfig.filesystem_errors` member.
14321432
1433+
See also :c:func:`PyUnicode_EncodeFSDefault` and
1434+
:ref:`related functions <capi-filesystem-encoding>`
1435+
for encoding paths at runtime.
1436+
14331437
.. c:member:: wchar_t* filesystem_errors
14341438
14351439
:term:`Filesystem error handler <filesystem encoding and error handler>`:

‎Doc/c-api/unicode.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,8 @@ system.
928928
used for ``strict``.
929929
930930
931+
.. _capi-filesystem-encoding:
932+
931933
File System Encoding
932934
""""""""""""""""""""
933935

0 commit comments

Comments
 (0)