[threeten-dev] Host Locale Provider cannot get Japanese DayOfWeek
Frank Ding
dingxmin at linux.vnet.ibm.com
Sat Apr 27 00:51:56 PDT 2013
Hi threeten guys,
A bug was found in b87 when Host Locale Provider was used, "Day name in
week" and "AM/PM mark" become blank in Japanese environment.
Locale locale = new Locale("ja","JP","JP");
SimpleDateFormat df = new SimpleDateFormat("GGGG yyyy.MM.dd '('E')' a
hh:mm:ss zzz", locale);
System.out.println(df.format(new Date()));
The expected output is "\u5e73\u6210 25.04.19 (\u91d1) \u5348\u5f8c
06:28:59 JST" or "平成 25.04.27 (土) 午後 03:47:28 CST", which can be
obtained by specifying JRE as locale provider
(-Djava.locale.providers=JRE). However, it's now "Heisei 25.04.19 ()
06:24:02 JST
" when option "-Djava.locale.providers=HOST" is specified.
Can anybody take a look at it and confirm?
Best regards,
Frank
More information about the threeten-dev
mailing list