diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-19 01:05:19 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-19 01:05:19 (GMT) |
commit | e8d5145e18318e0b5003371d4d666c4e445f610e (patch) | |
tree | 4777af9b6fd7369e380fb79c5ec0dd7cbed859ee /Doc/whatsnew | |
parent | dbe6042f0a5b8c193efbd75cab0733bbadad4efd (diff) | |
download | cpython-e8d5145e18318e0b5003371d4d666c4e445f610e.zip cpython-e8d5145e18318e0b5003371d4d666c4e445f610e.tar.gz cpython-e8d5145e18318e0b5003371d4d666c4e445f610e.tar.bz2 |
Create os.fsdecode(): decode from the filesystem encoding with surrogateescape
error handler, or strict error handler on Windows.
* Rewrite os.fsencode() documentation
* Improve os.fsencode and os.fsdecode() tests using the new PYTHONFSENCODING
environment variable
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.2.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 3927f4b..2ec93d2 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -237,13 +237,16 @@ Major performance enhancements have been added: * Stub -Unicode -======= +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 :mod:`os` module has two new functions: :func:`os.fsencode` and +:func:`os.fsdecode`. + IDLE ==== |