JDK-6486607 : incorrect french localization for GY country code
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2006-10-26
  • Updated: 2011-02-16
  • Resolved: 2007-06-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6 JDK 7
5.0u12Fixed 6u4 b01Fixed 7Fixed
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.
27-10-2006