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

Norwegian Bokmål Locale fallback issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b09
    • CPU:
      generic
    • OS:
      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

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

                Dates

                Created:
                Updated:
                Resolved: