FULL PRODUCT VERSION : java version "1.5.0_14" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03) Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows XP [Version 5.1.2600] A DESCRIPTION OF THE PROBLEM : Locale#getDisplayCountry() and Locale#getDisplayLanguage() with Finnish locale fi_FI returns incorrect names. In Finnish the country France is called "Ranska", not "Franska", and the language French is called "ranska" not "franska". See: http://fi.wikipedia.org/wiki/Ranska http://fi.wikipedia.org/wiki/Ranskan_kieli Note: the error only affects the Finnish locale fi_FI, the existing names for the Finnish-Swedish locale sv_FI are correkt. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See test case EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - "France=Ranska" "French=ranska" ACTUAL - "France=Franska" "French=franska" REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- import java.util.Locale; public class LocaleTest { public static void main(String[] args) { System.out.println("France=" + Locale.FRANCE.getDisplayCountry(new Locale("fi", "FI"))); System.out.println("French=" + Locale.FRENCH.getDisplayLanguage(new Locale("fi", "FI"))); } } ---------- END SOURCE ----------
|