This is an i18n issue.
I compile the attached program and run it in windows 7 zh_CN.
When java.locale.providers is default(JRE) or CLDR, the output is the expected. But when the providers is HOST, the formatted date text is in English. From what I understand, since the formatter uses default locale (zh_CN here), the formatted output should be in Chinese from the underlying
win7 zh_CN.
Attched are the test program and the screenshot of the output.
I compile the attached program and run it in windows 7 zh_CN.
When java.locale.providers is default(JRE) or CLDR, the output is the expected. But when the providers is HOST, the formatted date text is in English. From what I understand, since the formatter uses default locale (zh_CN here), the formatted output should be in Chinese from the underlying
win7 zh_CN.
Attched are the test program and the screenshot of the output.