Uh oh!
There was an error while loading. Please reload this page.
gh-110913: Fix WindowsConsoleIO chunking of UTF-8 text - #111007
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
b8a5110 to
b66a4e4CompareMost changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
b66a4e4 to
709fb94CompareMost changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
709fb94 to
2be4b92CompareMost changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
2be4b92 to
2b0bf5bCompareMost changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
zooba
commented
Oct 18, 2023
I think we should have a NEWS entry for this, just to acknowledge that we changed the fix. Something like The change looks fine to me, but I'd like one more ACK before merging in case my head still isn't clear. |
sorgloomer
commented
Oct 19, 2023
Thanks! Added the NEWS entry. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Is it even possible to write tests for this?
zooba
commented
Oct 19, 2023
Not without refactoring the entire thing (e.g. to make the actual It's a harmless enough issue that I think we're okay. Misunderstanding the UTF-8 format is what the problem was this time, and that's been triple checked now. |
serhiy-storchaka
commented
Oct 19, 2023
I'm just wondering if it's possible to get invalid UTF-8 here (using "surrogateescape"?). If yes, then we should use more sophisticated way to find the longest valid prefix of invalid sequence to meet recomendations for handling invalid UTF-8. Otherwise LGTM. |
zooba
commented
Oct 20, 2023
If it's undecodable by Thanks for the review! |
Thanks @sorgloomer for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
GH-111108 is a backport of this pull request to the 3.12 branch. |
GH-111109 is a backport of this pull request to the 3.11 branch. |
Fix the loop that searches for an UTF-8 sequence boundary