Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented May 5, 2022

Backport of #68706 to release/6.0

/cc @steveisok

Customer Impact

Previously on all Apple platforms, we have delegated to ICU to tell us what the user's default locale was. We would then map the return value (en_US_POSIX) to an empty string, which means invariant mode. The behavior conflicted with the legacy xamarin experience that would look up the system locale set by the user. This change brings over what we had before.

Testing

Added a unit test to detect if the default current culture is not in invariant mode

Risk

Low - although note this change does apply to desktop as well as iOS, tvOS, and MacCatalyst.

IMPORTANT: If this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Steve Pfister added 8 commits May 5, 2022 21:15
This change adds a function to lookup the current NSLocale and extract the language + country code to load into ICU by default.  Previously, we would defer to uloc_getDefault in ICU, which would return a value we would ignore (en_US_POSIX) and result in falling back to invariant mode.

Fixes #68321
@ghost
Copy link

ghost commented May 5, 2022

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

Issue Details

Backport of #68706 to release/6.0

/cc @steveisok

Customer Impact

Testing

Risk

IMPORTANT: If this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Globalization

Milestone: -

@tarekgh tarekgh added os-mac-os-x macOS aka OSX os-ios Apple iOS os-tvos Apple tvOS os-maccatalyst MacCatalyst OS labels May 5, 2022
@ghost
Copy link

ghost commented May 5, 2022

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

Issue Details

Backport of #68706 to release/6.0

/cc @steveisok

Customer Impact

Testing

Risk

IMPORTANT: If this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Globalization, os-mac-os-x, os-ios, os-tvos, os-maccatalyst

Milestone: -

@mmitche
Copy link
Member

mmitche commented May 16, 2022

Code complete is today, plese get this in.

@steveisok steveisok added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels May 16, 2022
@steveisok
Copy link
Member

Approved over email

@carlossanlop carlossanlop merged commit 86308dc into release/6.0 May 16, 2022
@carlossanlop carlossanlop deleted the backport/pr-68706-to-release/6.0 branch May 16, 2022 19:32
@ghost ghost locked as resolved and limited conversation to collaborators Jun 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Globalization os-ios Apple iOS os-mac-os-x macOS aka OSX os-maccatalyst MacCatalyst OS os-tvos Apple tvOS Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants