-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Conversation
@acid-chicken we read Eras from the OS but updating fallback data is fine too I believe. See i.e.: coreclr/src/System.Private.CoreLib/shared/System/Globalization/JapaneseCalendar.Win32.cs Line 14 in 261ff1c
cc: @tarekgh |
@acid-chicken The hard coded table as it is not really used. On Windows we read the Windows registry which is going to be updated by Windows Updates. On Linux, we use ICU which also is going to release a new version with the updated era names. The hard coded table is used only if we fail getting the needed information from the OS. @krwq I am not seeing any harm to to take this change even if it is not used. at least the information would reflect the current state. we just want to ensure this change is not going to cause any side effect. I'll double check that quickly before we decide to merge it. |
@acid-chicken could you please update the table in the following places too? coreclr/src/System.Private.CoreLib/shared/System/Globalization/JapaneseCalendar.Win32.cs Line 203 in ff43a80
coreclr/src/System.Private.CoreLib/shared/System/Globalization/JapaneseCalendar.WinRT.cs Line 50 in ff43a80
|
* Add new era in Japan called "Reiwa" * Update Japanese eras English names refs: <dotnet/coreclr#23614 (comment)> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
* Add new era in Japan called "Reiwa" * Update Japanese eras English names refs: <dotnet/coreclr#23614 (comment)> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
* Add new era in Japan called "Reiwa" * Update Japanese eras English names refs: <dotnet/coreclr#23614 (comment)> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
It appears that some call sites of GetEraInfo() relies on the fact that the first item in the array is the current era. (e.g. Also, (By the way, considering that this hard-coded data is only used if every other method of obtaining data fail, which is very unlikely to happen, it might be okay to leave it as is.) |
@@ -14,11 +14,11 @@ namespace System.Globalization | |||
/// and the era begins on the day an emperor ascends the throne and continues until his death. |
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 we should change this comment as well, he's still going strong 😀
@Gnbrkm41 the change in PR is used only when we fallback when something catastrophic happen. So, your concerns regarding having this update before May 1st are not real and no one will experience this change . for s_japaneseErasEnglishNames, we still need that. For the comment, feel free to open a PR with the changes in that comment. |
* Add new era in Japan called "Reiwa" * Update Japanese eras English names refs: <dotnet/coreclr#23614 (comment)> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
* Add new era in Japan called "Reiwa" * Update Japanese eras English names refs: <dotnet/coreclr#23614 (comment)> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
* Add new era in Japan called "Reiwa" * Update Japanese eras English names refs: <dotnet/coreclr#23614 (comment)> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
* Fix Japan's new era fallback isn't reflected in Mono refs: <dotnet/coreclr#23614> * Fix array length * Fix MonoTests.System.Globalization.CalendarTest * Fix MonoTests.System.Globalization.EastAsianLunisolarCalendarTest * Fix era index refs: 1715e1d * Amend fixing refs: 05af6e6
* Fix Japan's new era fallback isn't reflected in Mono refs: <dotnet/coreclr#23614> * Fix array length * Fix MonoTests.System.Globalization.CalendarTest * Fix MonoTests.System.Globalization.EastAsianLunisolarCalendarTest * Fix era index refs: 1715e1d * Amend fixing refs: 05af6e6
* Add new era in Japan called "Reiwa" * Update Japanese eras English names refs: <dotnet/coreclr#23614 (comment)> Commit migrated from dotnet/coreclr@0ec4acb
FYI: https://www.meti.go.jp/policy/it_policy/kaigen/20190405_kaigen_code.pdf