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

Incorrect country display name in Locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 7u75, 8, 9
    • globalization

    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

        Activity

          People

            jlu Justin Lu
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: