summaryrefslogtreecommitdiff
path: root/maint
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-11-26 17:03:45 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-11-26 17:03:45 +0000
commitf5a7a91a3b28530c5a9a601f6aa3576033edabda (patch)
tree7e403e008a8fde5bcfa5c9e5abc951f56455e68c /maint
parent2d3c19ac8ce3b6766824b517cd518c37a7c84ee1 (diff)
downloadpcre-f5a7a91a3b28530c5a9a601f6aa3576033edabda.tar.gz
Fix incorrect script bug in Unicode character table.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@277 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'maint')
-rwxr-xr-xmaint/Builducptable10
1 files changed, 7 insertions, 3 deletions
diff --git a/maint/Builducptable b/maint/Builducptable
index 359ab08..3c317d0 100755
--- a/maint/Builducptable
+++ b/maint/Builducptable
@@ -8,7 +8,9 @@
# The script is rather slow because it just searches linearly through the
# Scripts data in order to find the script for each character or character
# range. It could be made faster by sorting that data, or something, but hey,
-# it is only ever run once in a blue moon.
+# it is only ever run once in a blue moon. (It's even slower after I mended the
+# "forgot to check for script number before amalgamation" bug, but even so,
+# the effort of improving it isn't worth it.)
# Subroutine: Given a character number, return the script number. The
# Scripts.txt file has been read into an array, keeping just the codepoints
@@ -164,7 +166,8 @@ while (<IN>)
}
else
- {
+ {
+ my($startscript) = script($cp);
my($ncp) = $cp + 1;
while (<IN>)
{
@@ -172,7 +175,8 @@ while (<IN>)
last if (hex($fields[0]) != $ncp ||
$fields[2] ne $gc ||
$fields[12] ne "" ||
- $fields[13] ne "");
+ $fields[13] ne "" ||
+ script($ncp) != $startscript);
$ncp++;
}