about summary refs log tree commit diff
path: root/iconvdata/gap.pl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-26 18:47:24 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-26 18:47:24 +0000
commit2fb2e75ae082492e5efea1016632528698505fe3 (patch)
tree8c7e966b3879f4ce5c7737bc8520c0077bf2fc93 /iconvdata/gap.pl
parent8babd571bf5d07755947de8ad0bea1895df2df81 (diff)
downloadglibc-2fb2e75ae082492e5efea1016632528698505fe3.tar.gz
glibc-2fb2e75ae082492e5efea1016632528698505fe3.tar.xz
glibc-2fb2e75ae082492e5efea1016632528698505fe3.zip
Update.
1998-04-26 18:44  Ulrich Drepper  <drepper@cygnus.com>

	* iconvdata/Makefile: Correct rules to generate gap table.
	* iconvdata/gap.pl: Simplify.
Diffstat (limited to 'iconvdata/gap.pl')
-rw-r--r--iconvdata/gap.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/iconvdata/gap.pl b/iconvdata/gap.pl
index 8d595e327d..2a06adc36c 100644
--- a/iconvdata/gap.pl
+++ b/iconvdata/gap.pl
@@ -5,12 +5,12 @@ while (<>) {
   if ($u - $last > 6) {
     if ($last != 0) {
       printf ("  { start: 0x%04x, end: 0x%04x, idx: %5d },\n",
-	      $first, $last, $idx - $first);
-      $idx += $last - $first + 1;
+	      $first, $last, $idx);
+      $idx -= $u - $last - 1;
     }
     $first=$u;
   }
   $last=$u;
 }
 printf ("  { start: 0x%04x, end: 0x%04x, idx: %5d },\n",
-	$first, $last, $idx - $first);
+	$first, $last, $idx);