Support for Turkish locale
Jing LV
lvjing at linux.vnet.ibm.com
Tue Mar 1 10:13:07 UTC 2011
Hello,
I've found several problem while using OpenJDK under Turkish Locale. For
some examples:
(All testcase should run with parameter -Duser.language=tr
-Duser.region=TR)
public static void main(String args[]) {
System.out.println(" locale :" + Locale.getDefault());
ResourceBundle bundle = ResourceBundle.getBundle ("com.sun.java.swing.plaf.windows.resources.windows", 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
And
public static void main(String args[]) {
ResourceBundle bundle = ResourceBundle.getBundle("test", Locale
.getDefault());
String sample = bundle.getString("string1");
System.out.println(" FirstString : " + sample);
System.out.println(" SecondString : " + bundle.getString("string2"));
}
it requires a text file "test_tr.properties" with entries:
test=\u00dcretilen ara kaynak dosyalar\u0131 silinmez\n
test1=abc\u00f3def
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 http://bugs.sun.com/view_bug.do?bug_id=6341798, 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