summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-06-11 23:56:51 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-06-11 23:56:51 (GMT)
commit313a120ab6515f1bcddb13a9403a857078a9e474 (patch)
tree7304789294142106cef3076af6249fa611f041e3 /Doc/library/os.rst
parent0f35e2c0f44b2012e4e32aaccde6fa42756e61f1 (diff)
downloadcpython-313a120ab6515f1bcddb13a9403a857078a9e474.zip
cpython-313a120ab6515f1bcddb13a9403a857078a9e474.tar.gz
cpython-313a120ab6515f1bcddb13a9403a857078a9e474.tar.bz2
Issue #8969: On Windows, use mbcs codec in strict mode to encode and decode
filenames and enable os.fsencode().
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 970725a..7503697 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -159,10 +159,10 @@ process and user.
.. function:: fsencode(value)
Encode *value* to bytes for use in the file system, environment variables or
- the command line. Uses :func:`sys.getfilesystemencoding` and
- ``'surrogateescape'`` error handler for strings and returns bytes unchanged.
-
- Availability: Unix.
+ the command line. Use :func:`sys.getfilesystemencoding` and
+ ``'surrogateescape'`` error handler for strings and return bytes unchanged.
+ On Windows, use ``'strict'`` error handler for strings if the file system
+ encoding is ``'mbcs'`` (which is the default encoding).
.. versionadded:: 3.2