Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix Hebrew calendar month names list #16247

Merged
merged 2 commits into from
Feb 7, 2018

Conversation

tarekgh
Copy link
Member

@tarekgh tarekgh commented Feb 7, 2018

Fixes #16203

@tarekgh
Copy link
Member Author

tarekgh commented Feb 7, 2018

CC @jkotas @krwq

@jkotas
Copy link
Member

jkotas commented Feb 7, 2018

Do we need a regression test in CoreFX for this ?

@tarekgh
Copy link
Member Author

tarekgh commented Feb 7, 2018

test Windows_NT x64_arm64_altjit Checked corefx_baseline
test Ubuntu x64 Checked corefx_baseline

@tarekgh
Copy link
Member Author

tarekgh commented Feb 7, 2018

Do we need a regression test in CoreFX for this?

Yes, I have the test ready but I didn't open the PR yet. if you want I can open the PR from now.

@@ -257,6 +267,15 @@ private static bool EnumMonthNames(string localeName, CalendarId calendarId, Cal
callbackContext.Results.Add(string.Empty);
}

if (callbackContext.Results.Count > 13)
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Debug.Assert(callbackContext.Results.Count == 14 && calendarId == CalendarId.HEBREW) ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future we can get calendars which can have 13 months too. so I prefer not putting this assert.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path is only taken for 14 months or more...

I was just wondering whether assert like that would help us if some other calendar needs the special treatment like Hebrew.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add the assert. I think it make sense to be conscious about any other similar behaving calendar

@tarekgh
Copy link
Member Author

tarekgh commented Feb 7, 2018

The failures in Windows_NT x64_arm64_altjit Checked corefx_baseline are because the API compat complaining about the new System.Runtime.Intrinsics API. so these are not related.

@jkotas
Copy link
Member

jkotas commented Feb 7, 2018

It also means that no corefx tests run on your change...

@tarekgh
Copy link
Member Author

tarekgh commented Feb 7, 2018

It also means that no corefx tests run on your change...

That is fine. I have run the corefx globalization tests against my private manually. I just added these legs to get extra confidence

@jkotas jkotas merged commit dc4266c into dotnet:master Feb 7, 2018
dotnet-bot pushed a commit to dotnet/corefx that referenced this pull request Feb 7, 2018
* Fix Hebrew calendar month names list

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
jkotas pushed a commit to dotnet/corefx that referenced this pull request Feb 7, 2018
* Fix Hebrew calendar month names list

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
dotnet-bot pushed a commit to dotnet/corert that referenced this pull request Feb 11, 2018
* Fix Hebrew calendar month names list

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
dotnet-bot pushed a commit to dotnet/corert that referenced this pull request Feb 11, 2018
* Fix Hebrew calendar month names list

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
jkotas pushed a commit to dotnet/corert that referenced this pull request Feb 12, 2018
* Fix Hebrew calendar month names list

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
@tarekgh tarekgh deleted the FixHebrewMonthsInLinux branch March 25, 2019 15:29
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Fix Hebrew calendar month names list



Commit migrated from dotnet/coreclr@dc4266c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants