We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is pretty much the same issue as https://github.com/dotnet/coreclr/issues/23020, but we forgot to apply the same fix to the DecoderNLS class.
DecoderNLS
Repro code:
Encoder encoder = Encoding.UTF8.GetEncoder(); encoder.Convert(new char[] { '\ud800' }, 0, 1, new byte[0], 0, 0, flush: false, out int charsUsed, out int bytesUsed, out bool completed); Console.WriteLine(charsUsed); Console.WriteLine(bytesUsed); Console.WriteLine(completed); Console.WriteLine(); Decoder decoder = Encoding.UTF8.GetDecoder(); decoder.Convert(new byte[] { 0xF0 }, 0, 1, new char[0], 0, 0, flush: false, out bytesUsed, out charsUsed, out completed); Console.WriteLine(bytesUsed); Console.WriteLine(charsUsed); Console.WriteLine(completed);
Output on .NET Framework 4.8:
1 0 True <-- this is incorrect 1 0 True <-- this is incorrect
Output on .NET Core 3.0:
1 0 False <-- this is correct 1 0 True <-- this is still incorrect
/cc @tarekgh as FYI
The text was updated successfully, but these errors were encountered:
@GrabYourPitchforks do you think this could be important enough to port to 3.1?
Sorry, something went wrong.
Unsure. It's affecting my ability to create unit tests for https://github.com/dotnet/corefx/issues/41326. But I seem to be the only person in the world running into these issues. :)
@GrabYourPitchforks this make it very important to port it then :-)
Eh, sure. The worst shiproom can say is "no". :)
Re-opening until it's fixed in 3.1 (or we change the milestone).
GrabYourPitchforks
Successfully merging a pull request may close this issue.
This is pretty much the same issue as https://github.com/dotnet/coreclr/issues/23020, but we forgot to apply the same fix to the
DecoderNLS
class.Repro code:
Output on .NET Framework 4.8:
Output on .NET Core 3.0:
/cc @tarekgh as FYI
The text was updated successfully, but these errors were encountered: