-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Support the Encoding enumeration in the Encoding Providers #37528
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
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
@layomia @krwq @GrabYourPitchforks could you please have a look? Thanks. @joperezr could you please help the changes in the csproj files as we started to support netcoreapp for this library? Thanks. |
src/libraries/System.Private.CoreLib/src/System/Text/Encoding.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingInfo.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingProvider.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingInfo.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingProvider.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingProvider.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingTable.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingTable.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingTable.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Encoding.CodePages/src/System/Text/EncodingNLS.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Encoding.CodePages/src/System/Text/EncodingNLS.cs
Outdated
Show resolved
Hide resolved
@stephentoub thanks for the feedback. I think I have addressed all of them by applying your suggestions. let me know if you have any more feedback or we are good to go. |
src/libraries/System.Text.Encoding.CodePages/ref/System.Text.Encoding.CodePages.csproj
Show resolved
Hide resolved
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.
Other than the small comment about adding a property so the netcoreapp ref isn't shipped in the package, project-related changes look good to me.
@stephentoub please let me know if you have any other comments. This is pending your approval now. Thanks. |
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.
Thanks.
src/libraries/System.Private.CoreLib/src/System/Text/EncodingInfo.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingInfo.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingInfo.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingTable.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/EncodingTable.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Encoding.CodePages/src/System/Text/BaseCodePageEncoding.netcoreapp.cs
Outdated
Show resolved
Hide resolved
I had two cleanup nits, but nothing that should block checkin. Thanks Tarek for getting to this. :) |
I created a new issue for the CI failure on OSX failure #37629 |
…s not supported Those sneaked in with dotnet#37528 which was merged at the same time as my PR.
Fixes #25819
This change allows the encoding providers to enumerate its supported encoding through
EncodingProvider.GetEncodings()
method and havingEncoding.GetEncodings()
list all encodings from all registered providers.Also, the change fixes the Encoding.BodyName and Encoding.HeaderName properties in our EncodingCodePageProvider implementation to return correct values instead of throwing.