-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b12
-
x86
-
windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2157836 | 7 | Masaki Katakai | P4 | Closed | Fixed | b80 |
JDK-2159191 | OpenJDK6 | Jiri Tusla | P4 | Resolved | Fixed | b06 |
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 ----------
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 ----------
- backported by
-
JDK-2159191 Country/language names with locale fi_FI are incorrect for FRANCE/FRENCH
-
- Resolved
-
-
JDK-2157836 Country/language names with locale fi_FI are incorrect for FRANCE/FRENCH
-
- Closed
-