Skip to content

Conversation

@tarekgh
Copy link
Member

@tarekgh tarekgh commented Oct 26, 2022

Fixes #77451

Recently we had the change to enable calling the method CalendarData.GetTwoDigitYearMax when running with ICU mode. This method was asserting it is running on NLS mode which is not valid assertion any more. The change here is to remove the wrong assert to avoid firing in the debug builds.

@ghost ghost assigned tarekgh Oct 26, 2022
@ghost
Copy link

ghost commented Oct 26, 2022

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

Issue Details

Recently we had the change to enable calling the method CalendarData.GetTwoDigitYearMax when running with ICU mode. This method was asserting it is running on NLS mode which is not valid assertion any more. The change here is to remove the wrong assert to avoid firing in the debug builds.

Author: tarekgh
Assignees: tarekgh
Labels:

area-System.Globalization

Milestone: -

@tarekgh tarekgh merged commit a8ea8e6 into dotnet:main Oct 26, 2022
@tarekgh tarekgh deleted the RemoveTheAssert branch October 26, 2022 02:40
@ghost ghost locked as resolved and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion failure "GlobalizationMode.UseNls" in CalendarData.GetTwoDigitYearMax

2 participants