-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
Description
System.Globalization.RegionInfo.CurrentRegion returns a default RegionInfo object. This worked before upgrading to .net 9.
Currently, I've only tested this on iOS.
Another thing that is broken with .net 9 is my ability to compile for Android at all. There is a discrepancy with the SDK version, but that's a different issue.
This is kind of a big deal. I would assume it breaks globalization? It does certainly break the ability to show the correct currency symbol in my app. It also makes it impossible for me to get the correct pricing to display to the user.
Steps to Reproduce
- Create a new iOS app. Or use an existing one.
- Assign System.Globalization.RegionInfo.CurrentRegion to a variable.
- Set a breakpoint
- Look at the value. It's all blanks and the currency symbol is something I don't recognize.
Link to public reproduction project repository
No response
Version with bug
9.0.0 GA
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
I was not able test on other platforms
Affected platform versions
iOS 17.2 is the only one I've tested it on.
Did you find any workaround?
I did not.
Relevant log output
stephenquan, cam13469, ben14044, BenBleh, dominikargast and 5 more