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

Can't return correct locale name when "-Djava.locale.providers=JRE,CLDR" specified

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      Steps:
       Run attatched test with JDK9 b123 build
       $JAVA_HOME/bin/java -Djava.locale.providers=JRE,CLDR localename

      Expected result:
      On de_DE locale, ss should get Swasil\u00e4ndisch
      On ja_JP locale, mg should get \u30de\u30e9\u30ac\u30b7\u30fc\u8a9e
      On zh_CN locale, tl should get \u5854\u52a0\u8def\u65cf\u6587

      refer to properties files:
      de: http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/d9a44cfdeebf/src/jdk.localedata/share/classes/sun/util/resources/ext/LocaleNames_de.properties
      ja: http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/d9a44cfdeebf/src/jdk.localedata/share/classes/sun/util/resources/ext/LocaleNames_ja.properties
      zh: http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/d9a44cfdeebf/src/jdk.localedata/share/classes/sun/util/resources/ext/LocaleNames_zh.properties

      Actually result:
      On de_DE locale, got Swazi
      On ja_JP locale, got マダガスカル語
      On zh_CN locale,got 塔加洛文

        Attachments

          Activity

            People

            • Assignee:
              rgoel Rachna Goel (Inactive)
              Reporter:
              yzhou Daisy Zhou
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: