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

wrong default Norwegian locale (Bokmål instead of Nynorsk)

    Details

      Description



      Name: laC46010 Date: 10/17/97



      Constructor Locale("no", "NO") creates object of "no_NO_B" localization
      instead of "no_NO" localization as specified in
      "JDK 1.1 Internationalization Specification"
      [see http://java.sun.com/products/jdk/1.1/intl/html/intlspec.doc2.html]:

           Table 0-1 Locales Supported By JDK 1.11
      ...
       no_NO Norwegian (Nynorsk) Norway
       no_NO_B Norwegian (Bokmål) Norway
       

      An example below produces the following output:
      --------------output----------------
      failed: locale Norwegian (Nynorsk) (Norway) return - Norwegian (Bokmål) (Norway)

      --------------NO_NO_fails.java--------------------
      import java.util.Locale;

      class NO_NO_fails {
          public static void main(String argv[]) {
      Locale NO_NO = new Locale("no", "NO");
      String result = NO_NO.getDisplayName();
      if (result.equals("Norwegian (Nynorsk) (Norway)")) {
      System.out.println("OK");
      } else {
      System.out.println("failed: locale " +
      "Norwegian (Nynorsk) (Norway) return - " +
      result);
      }
          }
      }
      ---------------------------------------------------------

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rgillamsunw Richard Gillam (Inactive)
                Reporter:
                leosunw Leo Leo (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: