commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #11404] SimpleDateFormat bug with et_EE locale


From: Marko Kreen
Subject: [commit-cp] [bugs #11404] SimpleDateFormat bug with et_EE locale
Date: Mon, 27 Dec 2004 09:55:15 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041219 Firefox/1.0 (Debian package 1.0+dfsg.1-1)

This mail is an automated notification from the bugs tracker
 of the project: classpath.




/**************************************************************************/
[bugs #11404] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11404>
Project: classpath
Submitted by: Marko Kreen
On: Mon 12/27/2004 at 14:43

Category:  classpath
Severity:  5 - Average
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open
Platform Version:  None


Summary:  SimpleDateFormat bug with et_EE locale

Original Submission:  
-----------
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)












For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11404>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]