-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-101828: Fix jisx0213 codecs removing null characters
#139340
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
Conversation
|
@StanFromIreland Thank you for the investigation. Let me take a look at this weekend :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This patch prevents NULL bytes from being consumed as part of character pair encoding in the string. While this fixes the data loss bug, it does change existing behavior, so backporting needs discussion.
cc @methane
|
I will wait Naoki san for a week and plan to merge this PR. |
|
euc_jis_2004 has same logic. would you update it too? |
Is done. |
shift_jisx0213 & shift_jis_2004 codecs removing null charactersjisx0213 codecs removing null characters
|
iso2022_jp_3 and iso2022_jp_2004 have same issue. |
|
Thanks @StanFromIreland for the PR, and @corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…ongh-139340) (cherry picked from commit 87eadce) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
|
Sorry, @StanFromIreland and @corona10, I could not cleanly backport this to |
|
GH-140110 is a backport of this pull request to the 3.14 branch. |
|
I can backport. |
pythongh-139340) (cherry picked from commit 87eadce) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
|
GH-140112 is a backport of this pull request to the 3.13 branch. |
Uh oh!
There was an error while loading. Please reload this page.