-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-126742: allow to use non-UTF8 exception messages #126746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
encukou
merged 47 commits into
python:main
from
picnixz:fix/locale-set-object-exception-126742
Dec 17, 2024
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
24eb521
allow to use translated exception messages
picnixz 4c0f85b
Use 'surrogateescape' handler instead of 'strict' handler.
picnixz f432dc9
fix typos
picnixz 434cf5b
Merge branch 'main' into feat/capi/set-locale-exception-126742
picnixz 48238fc
Allow to set localized error string.
picnixz a38105b
Use `PyErr_SetLocaleString` when possible
picnixz 714dcb7
Indicate which external functions may return non-UTF8 error strings.
picnixz ee1f3c6
Merge branch 'main' into feat/capi/set-locale-exception-126742
picnixz 3d71f6b
fix build
picnixz 1a23bf5
update dll
picnixz 16a98a2
add docs & news
picnixz 5a150d2
update comment
picnixz 074bd4c
update TODO
picnixz 7f3a909
update comment
picnixz 1a321f9
Revert "add docs & news"
picnixz f5813a9
keep one internal helper instead of a public/private API pair
picnixz 84afad2
rename references to `PyErr_SetLocaleString`
picnixz 166a736
Simplify logic
picnixz 7c9a793
Merge branch 'main' into fix/locale-set-object-exception-126742
picnixz 314c9f1
Remove entry from refcounts.dat.
picnixz 571de05
update comment
picnixz 2633d18
Update Include/internal/pycore_pyerrors.h
picnixz 45442c3
fix grammar
picnixz 6bedc4b
Merge branch 'main' into fix/locale-set-object-exception-126742
picnixz 6f9ee0b
Unconditionally re-raise decoding errors
picnixz b02a715
add tests for `_PyErr_SetLocaleString`
picnixz 47d50b8
add tests for `dlerror` and `gdbm_*` functions
picnixz 574184c
fix tests
picnixz 4fecd76
remove C API internal tests
picnixz 26f074c
cosmetic changes on imports
picnixz cb4d5e4
fix tests
picnixz 6798f21
fix `dbm` tests
picnixz ce8ae02
improve test coverage
picnixz 8d442a3
fix macOS tests
picnixz f06d6a5
update names
picnixz 1c05250
fix tests
picnixz 3d69de1
fix tests (again???)
picnixz a079511
fix tests (macOS)
picnixz 8618de8
fix tests (windows)
picnixz 9bc4012
fix macOS tests
picnixz 1ea0f73
fix windows tests
picnixz 09d60f4
revert a missing line
picnixz a5722b1
revert changes
picnixz 5fc2e17
use libc.so instead
picnixz 62db957
address Victor's review
picnixz c665a2d
Fix tests (hopefully it will still work)
picnixz 765e16c
Reverting last commit to use `run_with_locale` only
picnixz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
#include "parts.h" | ||
#include "util.h" | ||
|
||
#include "clinic/exceptions.c.h" | ||
|
||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.