]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-126742: Add _PyErr_SetLocaleString, use it for gdbm & dlerror messages...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Dec 2024 11:45:29 +0000 (12:45 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Dec 2024 11:45:29 +0000 (11:45 +0000)
commitfe08cdf2657bfde80aeed436fe49fee233651837
tree3cc805f442713bcf4c92a1044e35da353ba471cd
parent367ea893847439502e155708539917bf655beb40
[3.13] gh-126742: Add _PyErr_SetLocaleString, use it for gdbm & dlerror messages (GH-126746) (GH-128023)

- Add a helper to set an error from locale-encoded `char*`
- Use the helper for gdbm & dlerror messages
(cherry picked from commit 7303f06846b69016a075bca7ad7c6055f29ad024)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
12 files changed:
Include/internal/pycore_pyerrors.h
Lib/test/test_ctypes/test_dlerror.py
Lib/test/test_dbm_gnu.py
Modules/_ctypes/_ctypes.c
Modules/_ctypes/callproc.c
Modules/_gdbmmodule.c
Modules/_hashopenssl.c
Modules/_sqlite/util.c
Modules/_testcapi/exceptions.c
Modules/main.c
Modules/pyexpat.c
Python/errors.c