Fix Getting Max Japanese Era (dotnet/coreclr#21087)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Mon, 19 Nov 2018 20:50:33 +0000 (12:50 -0800)
committerGitHub <noreply@github.com>
Mon, 19 Nov 2018 20:50:33 +0000 (12:50 -0800)
commita57242b1e1efcb7bea1ebb734f0875ca7a3175d7
treec46fdd71b8794c025050edb24fbc7bc66b5709d7
parentf16122f5354983847a387c6e4da9ff4680102f95
Fix Getting Max Japanese Era (dotnet/coreclr#21087)

We were using the ICU API ucal_getLimit and askin gto get the maximum value of the Japanese eras. it looks this API is just return the era matching the current system clock which prevent returning any future defined era in the system (which ICU 63.1 can support with some environment variable).
We raised the issue to the ICU owners but would be better just to get the era of Gregorian year 9999 which always should return the max era anyway.

Commit migrated from https://github.com/dotnet/coreclr/commit/8fd089e6600befc4cf25ae9f95529429e4763773
src/coreclr/src/corefx/System.Globalization.Native/calendarData.cpp