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

Norwegian locales not in sync with ISO639-1/ISO639-2

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b112
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description

      Name: rmT116609 Date: 03/01/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      The 2- and 3-letter codes for the two Norwegian languages are not in sync with ISO639-1/ISO639-2 (see: http://www.loc.gov/standards/iso639-2/englangn.html)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run enclosed source code.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      /* ... these are what I prefer as the two languages share the same characteristics concerning dates, separators and currency. (not sure about the casing of the variant code) */

      ;;no;nor;;Norwegian;no
      NO;NOR;no;nor;;Norwegian (Norway);no_NO
      NO;NOR;no;nor;Bokm�l;Norwegian (Norwayh,Bokm�l);no_NO_NB
      NO;NOR;no;nor;Nynorsk;Norwegian (Norway,Nynorsk);no_NO_NN

      /* ... but maybe this is more correct if one is to follow ISO to the letter ... */

      ;;no;nor;;Norwegian;no
      ;;nb;nob;;Norwegian Bokm�l;nb
      ;;nn;nno;;Norwegian Nynorsk;nn
      NO;NOR;no;nor;;Norwegian (Norway);no_NO
      NO;NOR;nb;nob;;Norwegian Bokm�l (Norway);nb_NO
      NO;NOR;nn;nno;;Norwegian Nynorsk (Norway);nn_NO

      /* ... or maybe all of them... :-) */
      ACTUAL -
      ;;no;nor;;Norwegian;no
      NO;NOR;no;nor;;Norwegian (Norway);no_NO
      NO;NOR;no;nor;Nynorsk;Norwegian (Norway,Nynorsk);no_NO_NY

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No errors.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.util.*;

      class Test {

      public static void main(String a[]) {

           Locale.setDefault(Locale.ENGLISH);
              for (Locale locale : Locale.getAvailableLocales()) { /* 1.5 */
                  System.out.println(
                          locale.getCountry() + ";" +
                          locale.getISO3Country() + ";" +
                          locale.getLanguage() + ";" +
                          locale.getLanguage() + ";" +
                          locale.getDisplayVariant() +";" +
                          locale.getDisplayName() + ";" +
                          locale);
              }

      }
      }

      ---------- END SOURCE ----------
      (Incident Review ID: 240885)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              naoto Naoto Sato
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: