United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6486607 incorrect french localization for GY country code
JDK-6486607 : incorrect french localization for GY country code

Details
Type:
Bug
Submit Date:
2006-10-26
Status:
Resolved
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2007-06-30
Component:
globalization
OS:
windows_2000
Sub-Component:
translation
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
6u4 (b01)

Related Reports
Backport:
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :


ADDITIONAL OS VERSION INFORMATION :
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b86)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b86, mixed mode, sharing)

(All versions affected)

EXTRA RELEVANT SYSTEM CONFIGURATION :
Microsoft Windows 2000 [Version 5.00.2195]

A DESCRIPTION OF THE PROBLEM :
The french localization for the 'GY' country code is wrong.
It should be "Guyana" instead of  "Guyane".


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Very easy to reproduce:

import java.util.Locale;

public class TestLocale {
	public static void main(String[] args) {
		Locale locale = new Locale("en", "gy");
		System.out.print(locale.getDisplayCountry(new Locale("fr")));
	}
}

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It should display the string "Guyana".
ACTUAL -
"Guyane"

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.util.Locale;

public class TestLocale {
	public static void main(String[] args) {
		Locale locale = new Locale("en", "gy");
		System.out.print(locale.getDisplayCountry(new Locale("fr")));
	}
}
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Either we will have to patch the JVM, or extends the Locale class to provide the correct value for the GF country code.

                                    

Comments
EVALUATION

Fix the j2se:/src/share/classes/sun/util/resources/LocaleNames_fr.properties, key GY.
                                     
2006-10-27



Hardware and Software, Engineered to Work Together