Skip to content

Commit 87fa8a7

Browse files
authored
bpo-29898: Fix incorrect env variable name (GH-1576)
It should read PYTHONLEGACYWINDOWSSTDIO as stated in section "Add legacy mode" in PEP 528.
1 parent 1bd7d29 commit 87fa8a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/using/cmdline.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ conflict.
571571

572572
.. versionchanged:: 3.6
573573
On Windows, the encoding specified by this variable is ignored for interactive
574-
console buffers unless :envvar:`PYTHONLEGACYWINDOWSIOENCODING` is also specified.
574+
console buffers unless :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also specified.
575575
Files and pipes redirected through the standard streams are not affected.
576576

577577
.. envvar:: PYTHONNOUSERSITE
@@ -700,7 +700,7 @@ conflict.
700700
.. versionadded:: 3.6
701701
See :pep:`529` for more details.
702702

703-
.. envvar:: PYTHONLEGACYWINDOWSIOENCODING
703+
.. envvar:: PYTHONLEGACYWINDOWSSTDIO
704704

705705
If set to a non-empty string, does not use the new console reader and
706706
writer. This means that Unicode characters will be encoded according to

Doc/whatsnew/3.6.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ provide correctly read str objects to Python code. ``sys.stdin``,
534534

535535
This change only applies when using an interactive console, and not when
536536
redirecting files or pipes. To revert to the previous behaviour for interactive
537-
console use, set :envvar:`PYTHONLEGACYWINDOWSIOENCODING`.
537+
console use, set :envvar:`PYTHONLEGACYWINDOWSSTDIO`.
538538

539539
.. seealso::
540540

0 commit comments

Comments
 (0)