]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126742: Add _PyErr_SetLocaleString, use it for gdbm & dlerror messages (GH-126746)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Tue, 17 Dec 2024 11:12:45 +0000 (12:12 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Dec 2024 11:12:45 +0000 (12:12 +0100)
commit7303f06846b69016a075bca7ad7c6055f29ad024
treefa3abb9f0a3b3b18bbd60590cbfb1c3c6a91d70f
parentb9a492b809d8765ee365a5dd3c6ba4e5130a80af
gh-126742: Add _PyErr_SetLocaleString, use it for gdbm & dlerror messages (GH-126746)

- Add a helper to set an error from locale-encoded `char*`
- Use the helper for gdbm & dlerror messages

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