Merged
Conversation
Member
Author
Member
Author
|
The fix of this issue needs to be backported to the 9.0 servicing release. |
This was referenced Jan 13, 2025
Open
jkotas
reviewed
Jan 13, 2025
src/libraries/System.Text.Encoding.CodePages/src/System/Text/EncodingCharBuffer.cs
Outdated
Show resolved
Hide resolved
ericstj
reviewed
Jan 13, 2025
src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs
Outdated
Show resolved
Hide resolved
jkotas
approved these changes
Jan 13, 2025
ericstj
approved these changes
Jan 13, 2025
Member
|
Seems like |
Member
Author
I'll take a look |
Member
Author
|
/backport to release/9.0 |
Contributor
|
Started backporting to release/9.0: https://github.com/dotnet/runtime/actions/runs/12754927051 |
4 tasks
This was referenced Jan 14, 2025
Member
Author
|
/ba-g the failing build is timeout which happened in other PRs. |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
#110521
The change here is fixing a regression from the change #97950.
The regression occurs in the multi-byte encoding when handling a surrogate pair. It incorrectly throws an exception when the character buffer is null, which is not the expected behavior. The code should be resilient to a null buffer, avoiding exceptions and instead returning only the count of the decoded characters.
The change is not reverting #97950 as the rest of the changes are beneficial.