[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22823] SimpleDateFormat bug with et_EE locale
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22823] SimpleDateFormat bug with et_EE locale |
Date: |
16 Oct 2005 01:27:21 -0000 |
-----------
import java.util.Date;
import java.text.SimpleDateFormat;
public class Test2 {
public static void main(String [] args) {
SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
System.out.println(f.format(new Date()));
}
}
-----------
jamvm-cvs is jamvm 1.2.3 with Classpath CVS.
---------------
$ LANG=C kaffe-cvs Test2
2004-12-27 16:14:17
$ LANG=et_EE.iso-8859-1 kaffe-cvs Test2
java.lang.IllegalArgumentException: Illegal pattern character -1
at java.text.SimpleDateFormat.formatWithAttribute
(SimpleDateFormat.java:539)
at java.text.SimpleDateFormat.format
(SimpleDateFormat.java:557)
at java.text.DateFormat.format (DateFormat.java:267)
at Test2.main (Test2.java:7)
$ LANG=C jamvm-cvs Test2
2004-12-27 16:15:08
$ LANG=et_EE.iso-8859-1 jamvm-cvs Test2
java.lang.IllegalArgumentException: Illegal pattern character -1
at java.text.SimpleDateFormat.formatWithAttribute
(SimpleDateFormat.java:539)
at java.text.SimpleDateFormat.format
(SimpleDateFormat.java:557)
at java.text.DateFormat.format (DateFormat.java:267)
at Test2.main (Test2.java:7)
------- Comment #1 from from-classpath at savannah dot gnu dot org 2004-12-30
11:21 -------
Fixed in CVS. Will be fixed in GNU classpath 0.13 release.
Thanks for your contribution.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22823
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22823] SimpleDateFormat bug with et_EE locale,
gcc-bugzilla at gcc dot gnu dot org <=