diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-08-21 11:16:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 11:16:31 (GMT) |
commit | 80bdebdd8593f007a2232ec04a7729bba6ebf12c (patch) | |
tree | 18b406c41aef8db030841fc066b3a9dc303cfa60 /Misc/NEWS.d/next/C API | |
parent | acbd3f9c5c5f23e95267714e41236140d84fe962 (diff) | |
download | cpython-80bdebdd8593f007a2232ec04a7729bba6ebf12c.zip cpython-80bdebdd8593f007a2232ec04a7729bba6ebf12c.tar.gz cpython-80bdebdd8593f007a2232ec04a7729bba6ebf12c.tar.bz2 |
gh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWithFilename() etc (GH-107929)
Diffstat (limited to 'Misc/NEWS.d/next/C API')
-rw-r--r-- | Misc/NEWS.d/next/C API/2023-08-14-10-59-03.gh-issue-107916.KH4Muo.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-08-14-10-59-03.gh-issue-107916.KH4Muo.rst b/Misc/NEWS.d/next/C API/2023-08-14-10-59-03.gh-issue-107916.KH4Muo.rst new file mode 100644 index 0000000..f1f1660 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2023-08-14-10-59-03.gh-issue-107916.KH4Muo.rst @@ -0,0 +1,4 @@ +C API functions :c:func:`PyErr_SetFromErrnoWithFilename`, +:c:func:`PyErr_SetExcFromWindowsErrWithFilename` and +:c:func:`PyErr_SetFromWindowsErrWithFilename` save now the error code before +calling :c:func:`PyUnicode_DecodeFSDefault`. |