Name: clC74495 Date: 06/25/98
This is from Oracle, a Java licensee.
The Oracle bug number is 675740.
[ Carlos.Lucasius@Canada (June 25, 1998): see also JavaSoft bug 4152412 ]
This bug did occur with 1.1.6. Please consider this a regression problem, and examine it ASAP.
To reproduce this problem, compile the following code with javac 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);
g.drawString("ISO3 Country: "+ myLocale.getISO3Country(), 50, 220);
}
}
Before running appletviewer be sure to set Windows NT4 Regional Settings to
Korean.
Some investigation of this problem reveal that a possible fix can be made with
a modification of four strings
"kor", "KO",
"korea", "KO",
"south korea", "KO",
"south-korea", "KO",
in the locale_str.h file in the JVM src/win32/java/include directory.
(Review ID: 34247)
======================================================================