diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-12-28 00:28:21 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-12-28 00:28:21 (GMT) |
commit | 92be939695a43f039f3ef0d0d5fe55dc67607f70 (patch) | |
tree | cf750b1451b8a13650946ec62569ba95a985c64a /Doc/c-api/exceptions.rst | |
parent | 83098a4095a66b6562db88802fec5ea108414d58 (diff) | |
download | cpython-92be939695a43f039f3ef0d0d5fe55dc67607f70.zip cpython-92be939695a43f039f3ef0d0d5fe55dc67607f70.tar.gz cpython-92be939695a43f039f3ef0d0d5fe55dc67607f70.tar.bz2 |
Issue #10780: PyErr_SetFromWindowsErrWithFilename() and
PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the
filesystem encoding instead of UTF-8.
Diffstat (limited to 'Doc/c-api/exceptions.rst')
-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 24ca264..d26e120 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -219,8 +219,9 @@ in various ways. There is a separate error indicator for each thread. Similar to :c:func:`PyErr_SetFromWindowsErr`, with the additional behavior that if *filename* is not *NULL*, it is passed to the constructor of - :exc:`WindowsError` as a third parameter. *filename* is decoded from UTF-8. - Availability: Windows. + :exc:`WindowsError` as a third parameter. *filename* is decoded from the + filesystem encoding (:func:`sys.getfilesystemencoding`). Availability: + Windows. .. c:function:: PyObject* PyErr_SetExcFromWindowsErrWithFilename(PyObject *type, int ierr, char *filename) |