-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[corlib] Add hack for Hebrew calendar data #16624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@monojenkins commit csproj |
|
@monojenkins build Linux AArch64 FullAOT+Interpreter+LLVM |
| [StructLayout (LayoutKind.Sequential)] | ||
| partial class CalendarData | ||
| { | ||
| private static string[] HEBREW_MONTH_NAMES = new[] { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
|
@monojenkins build Linux AArch64 Coop Suspend |
1 similar comment
|
@monojenkins build Linux AArch64 Coop Suspend |
|
@monojenkins backport to 2019-08 |
|
@monojenkins backport to 2019-06 |
|
@monojenkins backport 2019-02 |
[corlib] Add hack for Hebrew calendar data Commit migrated from mono/mono@73c8017
Workaround for #16623. Unblocks the CI, should be back-ported to other branches.
/cc @akoeplinger @jaykrell