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