diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-12-27 20:10:36 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-12-27 20:10:36 (GMT) |
commit | cb428f01625f99937b59431a53cc8f6013bd3cc2 (patch) | |
tree | e8667e28d2233034831ec06aaaf65cb3a014c7d2 /Doc | |
parent | 8e286c472b4b9c81ef2a3501ac984afe560e29a5 (diff) | |
download | cpython-cb428f01625f99937b59431a53cc8f6013bd3cc2.zip cpython-cb428f01625f99937b59431a53cc8f6013bd3cc2.tar.gz cpython-cb428f01625f99937b59431a53cc8f6013bd3cc2.tar.bz2 |
Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystem
encoding instead of UTF-8.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/exceptions.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 9fec46f..24ca264 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -297,8 +297,9 @@ in various ways. There is a separate error indicator for each thread. is a straightforward wrapper around the Python function :func:`warnings.warn_explicit`, see there for more information. The *module* and *registry* arguments may be set to *NULL* to get the default effect - described there. *message*, *filename* and *module* are UTF-8 encoded - strings. + described there. *message* and *module* are UTF-8 encoded strings, + *filename* is decoded from the filesystem encoding + (:func:`sys.getfilesystemencoding`). .. c:function:: int PyErr_WarnFormat(PyObject *category, Py_ssize_t stack_level, const char *format, ...) |