Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@filipnavara
Copy link
Contributor

Workaround for #16623. Unblocks the CI, should be back-ported to other branches.

/cc @akoeplinger @jaykrell

@filipnavara
Copy link
Contributor Author

@monojenkins commit csproj

@EgorBo EgorBo requested a review from MaximLipnin September 2, 2019 10:50
@filipnavara
Copy link
Contributor Author

@monojenkins build Linux AArch64 FullAOT+Interpreter+LLVM

[StructLayout (LayoutKind.Sequential)]
partial class CalendarData
{
private static string[] HEBREW_MONTH_NAMES = new[] {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a comment as to roughly what these are? Perhaps the identifier suffice.
or a comment saying ideally it is in native, to avoid fix startup.

Copy link
Member

Choose a reason for hiding this comment

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

It's a hack anyway, we need to find out why our "ICU" analogue doesn't handle it and fix there (this PR just fixes CI)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't handle it because the calendarId is completely ignored, both in managed code and the native code. It was there as TODO for couple of years - TODO: Convert calendar-id to mono runtime calendar-id when it's used. Basically any combination of locale and non-default calendar for given locale is broken.

No one noticed it until now because Hebrew is the only supported calendar with leap months and it was the first leap year since the code was introduced. The produced DateTime.ToString results for the given combination were incorrect since the very beginning but they were round-trippable because the same wrong names were used for parsing.

@steveisok
Copy link
Contributor

@monojenkins build Linux AArch64 Coop Suspend

1 similar comment
@filipnavara
Copy link
Contributor Author

@monojenkins build Linux AArch64 Coop Suspend

@EgorBo EgorBo merged commit 73c8017 into mono:master Sep 2, 2019
@filipnavara filipnavara deleted the hebrew branch September 2, 2019 17:44
@directhex
Copy link
Contributor

@monojenkins backport to 2019-08

@directhex
Copy link
Contributor

@monojenkins backport to 2019-06

@steveisok
Copy link
Contributor

@monojenkins backport 2019-02

ManickaP pushed a commit to ManickaP/runtime that referenced this pull request Jan 20, 2020
[corlib] Add hack for Hebrew calendar data

Commit migrated from mono/mono@73c8017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants