Support for Turkish locale

Jing LV lvjing at
Tue Mar 1 10:13:07 UTC 2011


I've found several problem while using OpenJDK under Turkish Locale. For 
some examples:

(All testcase should run with parameter -Duser.language=tr 

         public  static  void main(String  args[]) {
	System.out.println(" locale :"  + Locale.getDefault());
	     ResourceBundle bundle = ResourceBundle.getBundle ("", Locale.getDefault());
	System.out.println(" STRING :"  + bundle.getString("FileChooser.newFolderActionLabelText"));	

Excepted results:
locale : tr_TR
STRING : Yeni Klasör
But got:
locale : tr_TR
STRING : New Folder

public static void main(String args[]) {

		ResourceBundle bundle = ResourceBundle.getBundle("test", Locale
		String  sample = bundle.getString("string1");
		System.out.println(" FirstString  : "  + sample);
		System.out.println(" SecondString  : "  + bundle.getString("string2"));
         it requires a text file "" with entries:
		test=\u00dcretilen ara kaynak dosyalar\u0131 silinmez\n
Excepted result:
First String : ÜThis is a turkeyı test
Second String : simpleóword
But on windows XP, it was:
First String : ?This is a turkey? test
Second String : simple¨®word

     I also see, but sure if it is delivered already.

So my question is, is Turkish Locale officially supported by OpenJDK? 
And is there some solutions already for such issues? If no, I can 
provide the fix.

Best Regards,
Jimmy, Jing LV

More information about the core-libs-dev mailing list