Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8075577

java.time does not support HOST provider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8, 9
    • core-libs
    • JDK 8 or JDK 9 on windows 7 S. Chinese

    • 8
    • b148
    • generic
    • windows

      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.

        1. javadate.png
          41 kB
          Yong Huang
        2. JavaDateTest.java
          0.4 kB
          Yong Huang

            rgoel Rachna Goel (Inactive)
            yhuang Yong Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: