gen-table.pl: Don't process characters after \uffff.
authorTom Tromey <tromey@redhat.com>
Sat, 29 Dec 2001 04:31:10 +0000 (04:31 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sat, 29 Dec 2001 04:31:10 +0000 (04:31 +0000)
* gen-table.pl: Don't process characters after \uffff.  Added
comment pointing to input file.

From-SVN: r48359

gcc/java/ChangeLog
gcc/java/gen-table.pl

index b5b34bc1cd6d65eee801cd4436efcd9d5c953b93..74bffb6e6ac2de9be233b5771e4c516a5bcd4ea6 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-28  Tom Tromey  <tromey@redhat.com>
+
+       * gen-table.pl: Don't process characters after \uffff.  Added
+       comment pointing to input file.
+
 2001-12-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gen-table.pl: Const-ify output.  Document the location of a
index cb0a870291f7fd47736a1f03a019d1bcfb80be46..98d003ca60b0471909d91ae17850fe2210dd910b 100644 (file)
@@ -1,6 +1,6 @@
 #! /usr/bin/perl
 
-#    Copyright (C) 2000 Free Software Foundation
+#    Copyright (C) 2000, 2001 Free Software Foundation
 
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 # gen-table.pl - Generate tables for gcj from Unicode data.
 # Usage: perl gen-table.pl DATA-FILE
 #
-# A suitable DATA-FILE is available at:
-# ftp://www.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt
-
+# You can find the Unicode data file here:
+#   ftp://www.unicode.org/Public/3.0-Update1/UnicodeData-3.0.1.txt
+# Please update this URL when this program is used with a more
+# recent version of the table.  Note that this table cannot be
+# distributed with gcc.
+# This program should not be re-run indiscriminately.  Care must be
+# taken that what it generates is in sync with the Java specification.
 
 # Names of fields in Unicode data table.
 $CODE = 0;
@@ -80,6 +84,7 @@ while (<INPUT>)
     }
 
     $code = hex ($fields[$CODE]);
+    last if $code > 0xffff;
     if ($code > $last_code + 1)
     {
        # Found a gap.