PEP 540: The UTF-8 Mode

This commit is contained in:
Victor Stinner 2017-12-10 18:52:56 +01:00
parent 71cda51fbb
commit 08224bf6bd
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ The POSIX locale enables the locale coercion (PEP 538) and the UTF-8
mode (PEP 540). When the locale coercion is enabled, enabling the UTF-8
mode has no (additional) effect.
The UTF-8 has the same effect than locale coercion:
The UTF-8 Mode has the same effect than locale coercion:
``sys.getfilesystemencoding()`` returns ``'UTF-8'``,
``locale.getpreferredencoding()`` returns ``UTF-8``, ``sys.stdin`` and
``sys.stdout`` error handler set to ``surrogateescape``. These changes