Rename utf8b error handler to surrogateescape.
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index b7bd125..e3f98ef 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -322,7 +322,7 @@
| ``'backslashreplace'`` | Replace with backslashed escape sequences |
| | (only for encoding). |
+-------------------------+-----------------------------------------------+
-| ``'utf8b'`` | Replace byte with surrogate U+DCxx. |
+| ``'surrogateescape'`` | Replace byte with surrogate U+DCxx. |
+-------------------------+-----------------------------------------------+
In addition, the following error handlers are specific to a single codec:
@@ -335,7 +335,7 @@
+-------------------+---------+-------------------------------------------+
.. versionadded:: 3.1
- The ``'utf8b'`` and ``'surrogatepass'`` error handlers.
+ The ``'surrogateescape'`` and ``'surrogatepass'`` error handlers.
The set of allowed values can be extended via :meth:`register_error`.
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 83f5ee9..2213740 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -64,8 +64,8 @@
.. versionchanged:: 3.1
On some systems, conversion using the file system encoding may
- fail. In this case, Python uses the ``utf8b`` encoding error
- handler, which means that undecodable bytes are replaced by a
+ 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.