JDK-6182224 : Azeri locale detection and locale data support is missing
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 1.3.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-10-20
  • Updated: 2010-04-02
  • Resolved: 2004-10-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
Duplicate :  
J2SE v1.3.1_13 lacks support for detection of the Azeri locale and its related locale sensitive operations (formatting, language and country display names, month/day names and abbreviations, etc).

This bug can be reproduced by setting the Windows 2K/XP platform locale to Azeri(Latin) or Azeri(Cyrillic), and then running a Java applet or application that calls a method on the Locale class (e.g., getLanguage, getCountry, toString, etc) or any locale-sensitive classes such as NumberFormat, DateFormat, etc. For example, with the platform locale set to Azeri, the following code using the Locale class:

    Locale loc = Locale.getDefault();

displays 'en', 'US', and 'en_US' instead of 'az', 'AZ', and 'az_AZ' for the language, country, and toString, respectively.

We believe the Azeri support can be fixed with two modifications:

First, for locale detection, the src/win32/native/common/locale_str.h needs to have the following modification -- two entries to langIDMap[]:

  0x042c, "az_AZ",  /* Azeri_Latin */
  0x082c, "az_AZ",  /* Azeri_Cyrillic */

As a note, J2SE versions 1.4.0 and 1.4.1 already contains these mappings. To leverage that code for use in 1.3.X, see the 1.4.0 or 1.4.1 src/windows/native/common/locale_str.h file.

Second, for locale data support, the LocaleElements_az.java, LocaleElements_az_AZ.java and DateFormatZoneData_az.java will need to be added to the J2SE. Our firm has already gathered locale data for Azeri and created these three files. These files (or their data) can be supplied to Sun upon request.
###@###.### 10/20/04 22:47 GMT

EVALUATION The requested locales are not supported yet. Closing this change request as a duplicate of 4880789. ###@###.### 10/21/04 01:17 GMT