mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Issue #10780: PyErr_SetFromWindowsErrWithFilename() and
PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the filesystem encoding instead of UTF-8.
This commit is contained in:
parent
83098a4095
commit
92be939695
4 changed files with 11 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue