Skip to content

Remove the invalid assert - #77462

Merged
tarekgh merged 1 commit into
dotnet:mainfrom
tarekgh:RemoveTheAssert
Oct 26, 2022
Merged

Remove the invalid assert#77462
tarekgh merged 1 commit into
dotnet:mainfrom
tarekgh:RemoveTheAssert

Conversation

@tarekgh

@tarekghtarekgh commented Oct 26, 2022

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown

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:mainOct 26, 2022
@tarekgh
tarekgh deleted the RemoveTheAssert branch October 26, 2022 02:40
@ghostghost locked as resolved and limited conversation to collaborators Nov 25, 2022
Sign up for freeto 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

@tarekgh@maryamariyan