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.
      1. JavaDateTest.java
        0.4 kB
        Yong Huang
      1. javadate.png
        41 kB

        Activity

        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/5c9389804cbc
        User: nishjain
        Date: 2016-12-05 07:24:19 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/5c9389804cbc User: nishjain Date: 2016-12-05 07:24:19 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/5c9389804cbc
        User: lana
        Date: 2016-12-07 19:33:44 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/5c9389804cbc User: lana Date: 2016-12-07 19:33:44 +0000

          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: