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

Locale ID / resource bundle suffix for Hebrew should be "he" not "iw"

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.1, 1.4.2
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic, x86
    • OS:
      solaris_8, windows_2000

      Description

      Name: jl125535 Date: 11/13/2002


      FULL PRODUCT VERSION :
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
      Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cn130-20010609 (JIT enabled: jitc)
      )

      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      ADDITIONAL OPERATING SYSTEMS :




      A DESCRIPTION OF THE PROBLEM :
      Java is unable to load a resource bundle with suffix "he",
      even though "he" is the correct ISO language code for
      Hebrew. When we build and install localized resource files,
      we use "he" for everything else (HTML, XML, C/C++), but
      have to use "iw" for Java. It makes things unnecessarily
      complicated.

      I understand that you still need to recognize "iw" for
      backwards compatibility, but the primary and default suffix
      shoule be "he". Currently, "he" is remapped to "iw" when
      creating the locale, this behavior should be reversed.

      Currently, the string returned by the locale methods
      is "iw" and we have to remap it to "he" when communicating
      with users or interoperating with other environments. All
      other programming and runtime environments use "he". Java
      should also conform to the ISO standard and use "he" as the
      primary suffix.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.Create a resource bundle with "he" suffix.
      2.Create a locale with "he" as language.
      3.Try to load the bundle. It will not load.
      4. Do a locale.toString() on the locale and see that the
      string has been remapped to "iw".

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      (new Locale("he", "IL")).toString() returns "he_IL"
      ResourceBundle.getBundle(new Locale("he", "IL")) will load
      a resource bundle with "_he" suffix.

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 160172)
      ======================================================================
      ###@###.### 11/5/04 00:51 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              naoto Naoto Sato
              Reporter:
              jleesunw Jon Lee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: