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

Incorrect display name of Locale for south africa

    XMLWordPrintable

Details

    • b115
    • x86
    • windows_vista
    • Verified

    Backports

      Description

        FULL PRODUCT VERSION :
        1.6.0_13

        ADDITIONAL OS VERSION INFORMATION :
        Windows Vista, 32 bit

        A DESCRIPTION OF THE PROBLEM :
        When printing the display name of the Local for South Africa, in swedish,
        an additional space has slipped in at the end.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        System.out.println(new java.util.Locale("en", "ZA").getDisplayCountry(new java.util.Locale("sv", "SE")) + ".");

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Output should be:
        Sydafrika.
        ACTUAL -
        Sydafrika .

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        System.out.println(new java.util.Locale("en", "ZA").getDisplayCountry(new java.util.Locale("sv", "SE")) + ".");
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        new java.util.Locale("en", "ZA").getDisplayCountry(new java.util.Locale("sv", "SE")) .trim()

        Attachments

          Issue Links

            Activity

              People

                mfang Michael Fang (Inactive)
                ndcosta Nelson Dcosta (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: