You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
new RegionInfo("NO").NativeName returns different strings depending on the capitalization of the country code #39991
Norway has two official native names in its two official written standards; Norge in Bokmål and Noreg in Nynorsk.
When initializing a new RegionInfo with a Norwegian country code it will have a different value for its NativeName property depending solely on whether you capitalized the country code or not.
What's even worse is that depending on which capitalization you use the first time you initialize a RegionInfo instance the results will be cached and be returned on subsequent initializations of instances regardless of capitalization.
Activity
tarekgh commentedon Jul 28, 2020
@castholm did you try the repro with .NET 5.0?
tarekgh commentedon Jul 28, 2020
I submitted a PR for this issue.