Commit 87fa8a78 authored by Berker Peksag's avatar Berker Peksag Committed by GitHub

bpo-29898: Fix incorrect env variable name (GH-1576)

It should read PYTHONLEGACYWINDOWSSTDIO as stated
in section "Add legacy mode" in PEP 528.
parent 1bd7d299
...@@ -571,7 +571,7 @@ conflict. ...@@ -571,7 +571,7 @@ conflict.
.. versionchanged:: 3.6 .. versionchanged:: 3.6
On Windows, the encoding specified by this variable is ignored for interactive On Windows, the encoding specified by this variable is ignored for interactive
console buffers unless :envvar:`PYTHONLEGACYWINDOWSIOENCODING` is also specified. console buffers unless :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also specified.
Files and pipes redirected through the standard streams are not affected. Files and pipes redirected through the standard streams are not affected.
.. envvar:: PYTHONNOUSERSITE .. envvar:: PYTHONNOUSERSITE
...@@ -700,7 +700,7 @@ conflict. ...@@ -700,7 +700,7 @@ conflict.
.. versionadded:: 3.6 .. versionadded:: 3.6
See :pep:`529` for more details. See :pep:`529` for more details.
.. envvar:: PYTHONLEGACYWINDOWSIOENCODING .. envvar:: PYTHONLEGACYWINDOWSSTDIO
If set to a non-empty string, does not use the new console reader and If set to a non-empty string, does not use the new console reader and
writer. This means that Unicode characters will be encoded according to writer. This means that Unicode characters will be encoded according to
......
...@@ -534,7 +534,7 @@ provide correctly read str objects to Python code. ``sys.stdin``, ...@@ -534,7 +534,7 @@ provide correctly read str objects to Python code. ``sys.stdin``,
This change only applies when using an interactive console, and not when This change only applies when using an interactive console, and not when
redirecting files or pipes. To revert to the previous behaviour for interactive redirecting files or pipes. To revert to the previous behaviour for interactive
console use, set :envvar:`PYTHONLEGACYWINDOWSIOENCODING`. console use, set :envvar:`PYTHONLEGACYWINDOWSSTDIO`.
.. seealso:: .. seealso::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment