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

java.time does not support HOST provider

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Environment:

      JDK 8 or JDK 9 on windows 7 S. Chinese

    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b148
    • CPU:
      generic
    • OS:
      windows

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              rgoel Rachna Goel
              Reporter:
              yhuang Yong Huang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: