summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-11 03:13:07 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-11 03:13:07 +0000
commit5fb7be52f601397a3fdcff02ab1817e4635726c9 (patch)
treedb70e34d74d5432e39ed1b08f081b60bf3ce1670 /libjava
parentdae39efcde3ab87345506472eb92e2745f4e8536 (diff)
downloadgcc-5fb7be52f601397a3fdcff02ab1817e4635726c9.tar.gz
* java/util/Properties.java (load): Correctly read \u sequences.
Report from Anthony Green. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45532 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/util/Properties.java4
2 files changed, 8 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 8fd572e4583..85631936032 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-10 Tom Tromey <tromey@redhat.com>
+
+ * java/util/Properties.java (load): Correctly read \u sequences.
+ Report from Anthony Green.
+
2001-09-10 Manfred Hollstein <manfredh@redhat.com>
* configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
diff --git a/libjava/java/util/Properties.java b/libjava/java/util/Properties.java
index 5812173c91f..457048c1d09 100644
--- a/libjava/java/util/Properties.java
+++ b/libjava/java/util/Properties.java
@@ -147,7 +147,7 @@ public class Properties extends Hashtable
if (pos == line.length() || c == '#' || c == '!')
continue;
- // The characaters up to the next Whitespace, ':', or '='
+ // The characters up to the next Whitespace, ':', or '='
// describe the key. But look for escape sequences.
StringBuffer key = new StringBuffer();
while (pos < line.length()
@@ -185,6 +185,7 @@ public class Properties extends Hashtable
char uni = (char) Integer.parseInt
(line.substring(pos, pos + 4), 16);
key.append(uni);
+ pos += 4;
} // else throw exception?
break;
default:
@@ -247,6 +248,7 @@ public class Properties extends Hashtable
char uni = (char) Integer.parseInt
(line.substring(pos, pos + 4), 16);
element.append(uni);
+ pos += 4;
} // else throw exception?
break;
default: