mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
6246d6dcb0
commit
5b519e0201
6 changed files with 5 additions and 65 deletions
|
@ -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::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue