Skip to content

Wrong result from CultureInfo.CurrentCulture.Name in iOS #21806

@vsfeedback

Description

@vsfeedback

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions