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)
======================================================================