Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
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
|