Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6645268

Country/language names with locale fi_FI are incorrect for FRANCE/FRENCH

    Details

    • Subcomponent:
    • Resolved In Build:
      b12
    • CPU:
      x86
    • OS:
      windows_xp

      Backports

        Description

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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jtusla Jiri Tusla (Inactive)
                  Reporter:
                  peytoia Yuka Kamiya (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: