-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix wrong Region Info Names #108466
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 wrong Region Info Names #108466
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-globalization |
| public void BuiltInRegionListTest() | ||
| { | ||
| // Ensure we can create all region info objects from the built-in list | ||
| Dictionary<string, string> regionNames = (Dictionary<string, string>)typeof(RegionInfo).Assembly.GetType("System.Globalization.CultureData").GetProperty("RegionNames", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null); |
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.
Is there another source we could be enumerating? e.g. how does this related to the cultures enumerable from CultureInfo.GetCultures(All)... if we were to parse the regions out of those, would that be equivalent to (some of) this data?
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.
Culture enumeration can be done too but, in our data, we add some extra data that is not getting from the enumeration. That is why I decided to se the data we build.
|
/backport to release/9.0 |
|
Started backporting to release/9.0: https://github.com/dotnet/runtime/actions/runs/11166289238 |
* Fix wrong RegionInfo Names * Exclude the test on Windows 8 for the lack of full globalization data
|
/backport to release/8.0-staging |
|
Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/11183150514 |
* Fix wrong RegionInfo Names * Exclude the test on Windows 8 for the lack of full globalization data
We had some typo in some of the region info data. The change here is fixing that.