diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index c1130e4cd25..45c10408b0a 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -444,7 +444,7 @@ These environment variables influence Python's behavior. .. envvar:: PYTHONFSENCODING - If this is set before running the intepreter, it overrides the encoding used + If this is set before running the interpreter, it overrides the encoding used for the filesystem encoding (see :func:`sys.getfilesystemencoding`). .. versionadded:: 3.2 @@ -452,7 +452,7 @@ These environment variables influence Python's behavior. .. envvar:: PYTHONIOENCODING - If this is set before running the intepreter, it overrides the encoding used + If this is set before running the interpreter, it overrides the encoding used for stdin/stdout/stderr, in the syntax ``encodingname:errorhandler``. The ``:errorhandler`` part is optional and has the same meaning as in :func:`str.encode`. diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 81cfa83c745..7364e27ec74 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -241,7 +241,7 @@ Unicode ======= The filesystem encoding can be specified by setting the -:envvar:`PYTHONFSENCODING` environment variable before running the intepreter. +:envvar:`PYTHONFSENCODING` environment variable before running the interpreter. The value should be a string in the form ````, e.g. ``utf-8``.