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

Incorrect country display name in Locale

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u75, 8, 9
    • Fix Version/s: tbd
    • Component/s: globalization
    • Labels:

      Description

      FULL PRODUCT VERSION :
      java version "1.7.0_67"
      Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
      Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      The country name for locale "no_NO_NY" (Norwegian, nynorsk), when displayed with itself as given locale, comes out incorrect.

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.7.0_67"
      Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
      Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1) Instantiate a java.util.Locale object named "loc" with the following settings:
      * language = "no"
      * country = "NO"
      * variant = "NY"

      2) Print out the result of calling loc.getDisplayName(loc).


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      java.util.Locale locale = new java.util.Locale("no", "NO", "NY");
      System.out.println( locale.getDisplayCountry(locale) );
      ---------- END SOURCE ----------

        Attachments

        1. Test.java
          0.2 kB
          Pardeep Sharma

          Activity

            People

            Assignee:
            ljiang Leo Jiang (Inactive)
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: