-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix RegionInfo creation when using LOCALE_CUSTOM_UNSPECIFIED LCID #64927
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
Fix RegionInfo creation when using LOCALE_CUSTOM_UNSPECIFIED LCID #64927
Conversation
Tagging subscribers to this area: @dotnet/area-system-globalization Issue DetailsFixes #64893 Don't allow creating RegionInfo when using LOCALE_CUSTOM_UNSPECIFIED (0x1000) Lcid.
|
src/libraries/System.Globalization/tests/System/Globalization/RegionInfoTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Globalization/RegionInfo.cs
Show resolved
Hide resolved
…RegionInfoTests.cs Co-authored-by: Santiago Fernandez Madero <[email protected]>
The CI runtime failure in Linux arm is tracked by the issue #65115. |
src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.Windows.cs
Show resolved
Hide resolved
src/libraries/System.Globalization/tests/System/Globalization/RegionInfoTests.cs
Outdated
Show resolved
Hide resolved
{ | ||
Debug.Assert(!GlobalizationMode.Invariant); | ||
|
||
// LOCALE_CUSTOM_UNSPECIFIED ia an unspecified custom locale, used to identify all supplemental locales. |
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.
"ia an"
Fixes #64893
Don't allow creating RegionInfo when using LOCALE_CUSTOM_UNSPECIFIED (0x1000) Lcid.