Skip to content
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

IOS CultureInfo does not contain NativeName #75927

Closed
harrykontopoulos opened this issue Sep 20, 2022 · 6 comments
Closed

IOS CultureInfo does not contain NativeName #75927

harrykontopoulos opened this issue Sep 20, 2022 · 6 comments
Assignees
Milestone

Comments

@harrykontopoulos
Copy link

Description

Initialising a CurrentInfo object for a given culture and binding to the NativeName is throwing an exception.
Upon debugging on the simulator the object doesn't look to have the NativeName and other properties included.

image

Same result found uppon deploying on a real device and logging the error.

Reproduction Steps

  1. Crate a new template MAUI project.
    dotnet new maui -n "MyMauiApp"
  2. Initialise a CultureInfo object on the MainPage constructor.
    var info = new CultureInfo("en-GB");
  3. Debug and check the object with a breakpoint.

Expected behavior

The NativeName property should be populated with the respective value.

On Android (Device and Emulator) CultureInfo contains the properties as expected:

image

Actual behavior

Exception is thrown similar to this '"NativeName"' property not found on '"en-GB"'

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Sep 20, 2022
@ghost
Copy link

ghost commented Sep 20, 2022

Tagging subscribers to this area: @dotnet/area-system-globalization
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

Initialising a CurrentInfo object for a given culture and binding to the NativeName is throwing an exception.
Upon debugging on the simulator the object doesn't look to have the NativeName and other properties included.

image

Same result found uppon deploying on a real device and logging the error.

Reproduction Steps

  1. Crate a new template MAUI project.
    dotnet new maui -n "MyMauiApp"
  2. Initialise a CultureInfo object on the MainPage constructor.
    var info = new CultureInfo("en-GB");
  3. Debug and check the object with a breakpoint.

Expected behavior

The NativeName property should be populated with the respective value.

On Android (Device and Emulator) CultureInfo contains the properties as expected:

image

Actual behavior

Exception is thrown similar to this '"NativeName"' property not found on '"en-GB"'

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Author: harrykontopoulos
Assignees: -
Labels:

area-System.Globalization

Milestone: -

@harrykontopoulos harrykontopoulos changed the title IOS CurrentInfo does not contain NativeName IOS CultureInfo does not contain NativeName Sep 20, 2022
@tarekgh tarekgh added the os-ios Apple iOS label Sep 20, 2022
@ghost
Copy link

ghost commented Sep 20, 2022

Tagging subscribers to 'os-ios': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

Initialising a CurrentInfo object for a given culture and binding to the NativeName is throwing an exception.
Upon debugging on the simulator the object doesn't look to have the NativeName and other properties included.

image

Same result found uppon deploying on a real device and logging the error.

Reproduction Steps

  1. Crate a new template MAUI project.
    dotnet new maui -n "MyMauiApp"
  2. Initialise a CultureInfo object on the MainPage constructor.
    var info = new CultureInfo("en-GB");
  3. Debug and check the object with a breakpoint.

Expected behavior

The NativeName property should be populated with the respective value.

On Android (Device and Emulator) CultureInfo contains the properties as expected:

image

Actual behavior

Exception is thrown similar to this '"NativeName"' property not found on '"en-GB"'

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Author: harrykontopoulos
Assignees: -
Labels:

area-System.Globalization, untriaged, os-ios

Milestone: -

@tarekgh
Copy link
Member

tarekgh commented Sep 20, 2022

CC @steveisok

@steveisok
Copy link
Member

This is similar to #70028.

@steveisok steveisok removed the untriaged New issue has not been triaged by the area owner label Sep 20, 2022
@steveisok steveisok added this to the 8.0.0 milestone Sep 20, 2022
@steveisok steveisok self-assigned this Sep 20, 2022
@steveisok steveisok assigned mkhamoyan and unassigned steveisok Jul 13, 2023
@steveisok
Copy link
Member

@mkhamoyan can you test whether hybrid globalization fixes this or not?

@mkhamoyan
Copy link
Contributor

@mkhamoyan can you test whether hybrid globalization fixes this or not?

Yes this will work on hybrid globalization mode.
Implemented by #81470 and #83514

@ghost ghost locked as resolved and limited conversation to collaborators Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants