JDK-4151933 : NLS: JAVA ARABIC (U.A.E) COUNTRY CODE IS INCORRECT AS U; SHOULD BE AE
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.1.6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1998-06-24
  • Updated: 1998-08-14
  • Resolved: 1998-08-14
Related Reports
Duplicate :  
Description

Name: eyC74480			Date: 06/24/98


This is from Oracle, a Java licensee.  
The Oracle bug number is 676344.  
  
This bug did occur with JDK 1.1.4, JDK1.1.5 and 1.1.6. 
Please consider this a  regression problem, and examine it ASAP.  

To reproduce this problem, compile the following program with java and run it
with appletviewer.

import java.applet.Applet;
import java.awt.Graphics;
import java.util.Locale;
import java.lang.System;
public class JavaLocTester extends Applet
{
  public void paint(Graphics g)
  {
    Locale myLocale = Locale.getDefault();
    g.drawString("Language: "+ myLocale.getLanguage(), 50, 20);
    g.drawString("Country: "+ myLocale.getCountry(), 50, 40);
    g.drawString("Variant: "+ myLocale.getVariant(), 50, 60);
    g.drawString("toString: "+ myLocale.toString(), 50, 80);
    g.drawString("Display Language: "+ myLocale.getDisplayLanguage(), 50, 120)
    g.drawString("Display Country: "+ myLocale.getDisplayCountry(), 50, 140);
    g.drawString("Display Variant: "+ myLocale.getDisplayVariant(), 50, 160);
    g.drawString("ISO3 Language: "+ myLocale.getISO3Language(), 50, 200);
  }
}
Set the Windows NT4 Regional Setting to Arabic (U.A.E.) and run this program
with appletviewer.  The country code returned is U and it should be AE.  Of the
many Windows NT4 Arabic Regional Settings (some 16 Arabic ones in total), UAE
is a popular choice amongst Oracle Arabic users.
(Review ID: 34159)
======================================================================

Comments
EVALUATION I haven't had access to an Arabic system to try this out for sure, but I'm 99% certain that this bug has the same underlying cause and fix as bug #4151938. I'm merging this bug into that one. richard.gillam@eng 1998-08-13
13-08-1998