diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 2d76caebf5e..c70777de26d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2003-10-08 Michael Koch + + * java/text/SimpleDateFormat.java + (compileFormat): Replace Character.isLetter() test with + Character.isLowerCase() || Character.isUpperCase(). + 2003-10-08 Tom Tromey * java/lang/StrictMath.java (toDegrees): Multiply before diff --git a/libjava/java/text/SimpleDateFormat.java b/libjava/java/text/SimpleDateFormat.java index 804234f78a2..3ad71ee89ed 100644 --- a/libjava/java/text/SimpleDateFormat.java +++ b/libjava/java/text/SimpleDateFormat.java @@ -117,7 +117,8 @@ public class SimpleDateFormat extends DateFormat field = formatData.getLocalPatternChars().indexOf(thisChar); if (field == -1) { current = null; - if (Character.isLetter(thisChar)) { + if (Character.isLowerCase (thisChar) + || Character.isUpperCase (thisChar)) { // Not a valid letter tokens.add(new FieldSizePair(-1,0)); } else if (thisChar == '\'') {