Wrong result from CultureInfo.CurrentCulture.Name in iOS #110680
Description
From @vsfeedback on Thu, 12 Dec 2024 18:36:52 GMT
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work] [regression] [worked-in:17.12.0]
Put this in a Maui app:
Debug.WriteLine($"CultureInfo.CurrentCulture.Name: {CultureInfo.CurrentCulture.Name}");
In iOs is the result: en (wrong)
In Android and Windows is the result: en-US (correct)
In .NET 8 was the result correct for iOS.
Visual Studio 17.12.0
.NET 9
Microsoft.Maui.Controls Version 9.0.10
Original Comments
Feedback Bot on 11/18/2024, 11:33 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Geert Geerits on 11/20/2024, 03:17 AM:
Link to the repository: https://github.com/geertgeerits/MauiBugCurrentCulture
I like to change the severity to: I’m unable to use this version
I need the country code to retrieve the ISOCurrencySymbol for that country.
Copied from original issue xamarin/xamarin-macios#21806