Commit 22d0418f authored by Victor Stinner's avatar Victor Stinner

Issue #19728: Fix sys.getfilesystemencoding() documentation

parent 9d1dbca5
...@@ -409,7 +409,7 @@ always available. ...@@ -409,7 +409,7 @@ always available.
* On Mac OS X, the encoding is ``'utf-8'``. * On Mac OS X, the encoding is ``'utf-8'``.
* On Unix, the encoding is the user's preference according to the result of * On Unix, the encoding is the user's preference according to the result of
nl_langinfo(CODESET), or ``'utf-8'`` if ``nl_langinfo(CODESET)`` failed. nl_langinfo(CODESET).
* On Windows NT+, file names are Unicode natively, so no conversion is * On Windows NT+, file names are Unicode natively, so no conversion is
performed. :func:`getfilesystemencoding` still returns ``'mbcs'``, as performed. :func:`getfilesystemencoding` still returns ``'mbcs'``, as
...@@ -420,8 +420,7 @@ always available. ...@@ -420,8 +420,7 @@ always available.
* On Windows 9x, the encoding is ``'mbcs'``. * On Windows 9x, the encoding is ``'mbcs'``.
.. versionchanged:: 3.2 .. versionchanged:: 3.2
On Unix, use ``'utf-8'`` instead of ``None`` if ``nl_langinfo(CODESET)`` :func:`getfilesystemencoding` result cannot be ``None`` anymore.
failed. :func:`getfilesystemencoding` result cannot be ``None``.
.. function:: getrefcount(object) .. function:: getrefcount(object)
......
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