[kaffe] CVS kaffe (kaz): libraries/javalib/java/text/SimpleDateFormat.java:
Kaffe CVS
cvs-commits at kaffe.org
Sun Aug 31 16:16:02 PDT 2003
PatchSet 4004
Date: 2003/08/31 23:13:33
Author: kaz
Branch: HEAD
Tag: (none)
Log:
2003-08-31 Ito Kazumitsu <kaz at maczuka.gcd.org>
* libraries/javalib/java/text/SimpleDateFormat.java:
(compileFormat) corrected the way to check letters from 'A' to 'Z'
and from 'a' to 'z'.
Members:
ChangeLog:1.1600->1.1601
libraries/javalib/java/text/SimpleDateFormat.java:1.24->1.25
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1600 kaffe/ChangeLog:1.1601
--- kaffe/ChangeLog:1.1600 Sun Aug 31 22:08:52 2003
+++ kaffe/ChangeLog Sun Aug 31 23:13:33 2003
@@ -1,3 +1,9 @@
+2003-08-31 Ito Kazumitsu <kaz at maczuka.gcd.org>
+
+ * libraries/javalib/java/text/SimpleDateFormat.java:
+ (compileFormat) corrected the way to check letters from 'A' to 'Z'
+ and from 'a' to 'z'.
+
2003-08-31 Timothy S. Stack <stack at cs.utah.edu>
* Makefile.am:
Index: kaffe/libraries/javalib/java/text/SimpleDateFormat.java
diff -u kaffe/libraries/javalib/java/text/SimpleDateFormat.java:1.24 kaffe/libraries/javalib/java/text/SimpleDateFormat.java:1.25
--- kaffe/libraries/javalib/java/text/SimpleDateFormat.java:1.24 Tue Aug 26 05:38:50 2003
+++ kaffe/libraries/javalib/java/text/SimpleDateFormat.java Sun Aug 31 23:13:34 2003
@@ -118,7 +118,7 @@
field = formatData.getLocalPatternChars().indexOf(thisChar);
if (field == -1) {
current = null;
- if (Character.isLetter(thisChar)) {
+ if ((thisChar >= 'A' && thisChar <= 'Z') || (thisChar >= 'a' && thisChar <= 'z')) {
// Not a valid letter
tokens.addElement(new FieldSizePair(-1,0));
} else if (thisChar == '\'') {
More information about the kaffe
mailing list