diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-09-10 21:57:59 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-09-10 21:57:59 (GMT) |
commit | 5b519e02016ea3a51f784dee70eead3be4ab1aff (patch) | |
tree | 5886b329aef1b3d5fe965c78b97f82f99b93f6bf /Doc | |
parent | 6246d6dcb01c690fd82e870e5c4affbd2848d22c (diff) | |
download | cpython-5b519e02016ea3a51f784dee70eead3be4ab1aff.zip cpython-5b519e02016ea3a51f784dee70eead3be4ab1aff.tar.gz cpython-5b519e02016ea3a51f784dee70eead3be4ab1aff.tar.bz2 |
Issue #9632: Remove sys.setfilesystemencoding() function: use PYTHONFSENCODING
environment variable to set the filesystem encoding at Python startup.
sys.setfilesystemencoding() creates inconsistencies because it is unable to
reencode all filenames in all objects.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sys.rst | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 09dd844..ad61377 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -724,15 +724,6 @@ always available. :file:`/usr/include/dlfcn.h` using the :program:`h2py` script. Availability: Unix. -.. function:: setfilesystemencoding(enc) - - Set the encoding used when converting Python strings to file names to *enc*. - By default, Python tries to determine the encoding it should use automatically - on Unix; on Windows, it avoids such conversion completely. This function can - be used when Python's determination of the encoding needs to be overwritten, - e.g. when not all file names on disk can be decoded using the encoding that - Python had chosen. - .. function:: setprofile(profilefunc) .. index:: |