summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-19 11:36:43 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-19 11:36:43 (GMT)
commit9802b39c12712e924bed699812756ce5076b77a3 (patch)
treec766f8d6c74bd12b361fbdd0e6f423e62a768f41 /Doc
parent99435247e39134c34cff185c6d73d8ebc77d07e1 (diff)
downloadcpython-9802b39c12712e924bed699812756ce5076b77a3.zip
cpython-9802b39c12712e924bed699812756ce5076b77a3.tar.gz
cpython-9802b39c12712e924bed699812756ce5076b77a3.tar.bz2
PYTHONFSENCODING is not available on Windows or Mac OS X
Diffstat (limited to 'Doc')
-rw-r--r--Doc/using/cmdline.rst4
-rw-r--r--Doc/whatsnew/3.2.rst4
2 files changed, 7 insertions, 1 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 45c1040..28df51d 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -447,6 +447,10 @@ These environment variables influence Python's behavior.
If this is set before running the interpreter, it overrides the encoding used
for the filesystem encoding (see :func:`sys.getfilesystemencoding`).
+ This variable is not available (ignored) on Windows and Mac OS X: the
+ filesystem encoding is pinned to ``'mbcs'`` on Windows and ``'utf-8'`` on
+ Mac OS X.
+
.. versionadded:: 3.2
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 2ec93d2..bf65545 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -242,7 +242,9 @@ Filenames and unicode
The filesystem encoding can be specified by setting the
:envvar:`PYTHONFSENCODING` environment variable before running the interpreter.
-The value should be a string in the form ``<encoding>``, e.g. ``utf-8``.
+The value is an encoding name, e.g. ``iso-8859-1``. This variable is not
+available (ignored) on Windows and Mac OS X: the filesystem encoding is pinned
+to ``'mbcs'`` on Windows and ``'utf-8'`` on Mac OS X.
The :mod:`os` module has two new functions: :func:`os.fsencode` and
:func:`os.fsdecode`.