diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-04-26 18:47:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-04-26 18:47:24 +0000 |
commit | 2fb2e75ae082492e5efea1016632528698505fe3 (patch) | |
tree | 8c7e966b3879f4ce5c7737bc8520c0077bf2fc93 /iconvdata/gap.pl | |
parent | 8babd571bf5d07755947de8ad0bea1895df2df81 (diff) | |
download | glibc-2fb2e75ae082492e5efea1016632528698505fe3.zip glibc-2fb2e75ae082492e5efea1016632528698505fe3.tar.gz glibc-2fb2e75ae082492e5efea1016632528698505fe3.tar.bz2 |
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.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iconvdata/gap.pl b/iconvdata/gap.pl index 8d595e3..2a06adc 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); |