summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-05-16 09:36:45 (GMT)
committerGitHub <noreply@github.com>2017-05-16 09:36:45 (GMT)
commit87fa8a780e9045a26c735f085c07bba4b2d0be60 (patch)
tree23b4bb58df7610d31541ebca1f5e84d41b7f5a29
parent1bd7d299bd2a91f8267f97a413568ab8fe7fdfbb (diff)
downloadcpython-87fa8a780e9045a26c735f085c07bba4b2d0be60.zip
cpython-87fa8a780e9045a26c735f085c07bba4b2d0be60.tar.gz
cpython-87fa8a780e9045a26c735f085c07bba4b2d0be60.tar.bz2
bpo-29898: Fix incorrect env variable name (GH-1576)
It should read PYTHONLEGACYWINDOWSSTDIO as stated in section "Add legacy mode" in PEP 528.
-rw-r--r--Doc/using/cmdline.rst4
-rw-r--r--Doc/whatsnew/3.6.rst2
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 08dc311..40a06b9 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -571,7 +571,7 @@ conflict.
.. versionchanged:: 3.6
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.
.. envvar:: PYTHONNOUSERSITE
@@ -700,7 +700,7 @@ conflict.
.. versionadded:: 3.6
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
writer. This means that Unicode characters will be encoded according to
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index 163794d..60469cd 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -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
redirecting files or pipes. To revert to the previous behaviour for interactive
-console use, set :envvar:`PYTHONLEGACYWINDOWSIOENCODING`.
+console use, set :envvar:`PYTHONLEGACYWINDOWSSTDIO`.
.. seealso::