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

Greek characters showing up in the french canadian locale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • core-libs

      FULL PRODUCT VERSION :
      java version "1.6.0"
      Java(TM) SE Runtime Environment (build 1.6.0-b105)
      Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP Professional SP2

      A DESCRIPTION OF THE PROBLEM :
      The french canadian locale seems to be inserting greek characters in some cases.
      The output of the test case includes the tau and theta character. This appears to be a bug.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the testcase below

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No greek characters expected
      ACTUAL -
      Greek characters displayed


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.util.*;
      import java.text.*;

      class ShowDate {
       
         public static void main(String[] args) {

      Calendar c = Calendar.getInstance();
      Date d = c.getTime();

      Locale frCa = new Locale("fr", "CA");

      DateFormat dfFrCa = DateFormat.getDateInstance(DateFormat.FULL, frCa);

      System.out.println(frCa.getDisplayCountry(frCa));
      System.out.println(frCa.getDisplayLanguage(frCa));
      System.out.println(dfFrCa.format(d));

          }
      }

      ---------- END SOURCE ----------

            peytoia Yuka Kamiya (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: