-
Bug
-
Resolution: Fixed
-
P3
-
8, 8u20, 9
-
In my test, it's win2008r2 MUI.
Locale is set to ja and calendar is set to Japanese calendar
or Locale is set to th and calendar is set to Buddhist.
-
b101
-
generic
-
windows
Run the attached program (CalendarTest.java) on windows with locale set to Japanese and calendar set to Japanese calendar.
When -Djava.locale.providers=HOST, the map got from "Map<String, Integer> map = cal.getDisplayNames(Calendar.ERA, Calendar.LONG, new Locale("ja", "JP", "JP"));" is null.
Screen shot is also attached.
If the locale provider is not HOST, there is no exception. If the calendar of the windows is Gregory, it also works fine. Same kind of problem also happens in windows th-TH with calendar set to Buddhist.
When -Djava.locale.providers=HOST, the map got from "Map<String, Integer> map = cal.getDisplayNames(Calendar.ERA, Calendar.LONG, new Locale("ja", "JP", "JP"));" is null.
Screen shot is also attached.
If the locale provider is not HOST, there is no exception. If the calendar of the windows is Gregory, it also works fine. Same kind of problem also happens in windows th-TH with calendar set to Buddhist.