JDK-6507013 : Greek characters showing up in the french canadian locale
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-12-21
  • Updated: 2011-02-16
  • Resolved: 2006-12-21
Related Reports
Duplicate :  
Description
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 ----------