[threeten-dev] Host Locale Provider cannot get Japanese DayOfWeek
Frank Ding
dingxmin at linux.vnet.ibm.com
Sat Apr 27 01:00:02 PDT 2013
Forgot to mention that the era Heisei should be actually translated to
Japanese characters for HOST locale provider.
Best regards,
Frank
On 4/27/2013 3:51 PM, Frank Ding wrote:
> 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