summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-01 10:28:48 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-01 10:28:48 (GMT)
commitf6a271ae980d2f3fb450f745b8f87624378156c4 (patch)
treeae0c09042455826ae38875945dadd4919ca8f235 /Doc/library/os.rst
parentc6f8c0a1de448e7ca62ece1d21f089194d31f0d9 (diff)
downloadcpython-f6a271ae980d2f3fb450f745b8f87624378156c4.zip
cpython-f6a271ae980d2f3fb450f745b8f87624378156c4.tar.gz
cpython-f6a271ae980d2f3fb450f745b8f87624378156c4.tar.bz2
Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, rename
``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these functions.
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 9cfc472..bf3a8d5 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -78,9 +78,10 @@ uses the file system encoding to perform this conversion (see
.. versionchanged:: 3.1
On some systems, conversion using the file system encoding may fail. In this
- case, Python uses the ``surrogateescape`` encoding error handler, which means
- that undecodable bytes are replaced by a Unicode character U+DCxx on
- decoding, and these are again translated to the original byte on encoding.
+ case, Python uses the :ref:`surrogateescape encoding error handler
+ <surrogateescape>`, which means that undecodable bytes are replaced by a
+ Unicode character U+DCxx on decoding, and these are again translated to the
+ original byte on encoding.
The file system encoding must guarantee to successfully decode all bytes