JDK-4152423 : 11x: Korean country code is incorrect; should be KR
  • 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-25
  • Updated: 1998-12-17
  • Resolved: 1998-12-17
Related Reports
Duplicate :  
Description

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

Comments
EVALUATION This is an error in the translation table in locale_str.h. This bug is a duplicate of #4091969, and has the same fix, but that fix is superseded by the fix for bug #4151938. richard.gillam@eng 1998-08-13
13-08-1998