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

Norwegian Bokmål Locale fallback issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 17
    • None
    • core-libs
    • None
    • b09
    • generic
    • generic

    Description

      The spec of ResourceBundle.Control.getCandidateLocale() reads:
      ```
      when an input Locale has language "no" or "nb", candidate Locales with language code "no" and "nb" are interleaved, first using the requested language, then using its synonym
      ```
      However, the current implementation returns the same candidate list for both "nb-NO-POSIX" and "no-NO-POSIX" as in the example:
      [L("nb"), C("NO"), V("POSIX")]
      [L("no"), C("NO"), V("POSIX")]
      [L("nb"), C("NO")]
      [L("no"), C("NO")]
      [L("nb")]
      [L("no")]
      so it violates:
      ```
      Locale("no", "NO", "POSIX") would generate the same list except that locales with "no" would appear before the corresponding locales with "nb".
      ```

      Attachments

        Issue Links

          Activity

            People

              naoto Naoto Sato
              naoto Naoto Sato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: