summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-07-26 22:40:39 -0600
committerKarl Williamson <khw@cpan.org>2015-07-28 22:15:58 -0600
commit18c36e43550d746a9c9fb692226798fd0bfa58d5 (patch)
treee15d5561868d7c4e94ea44aa8ce3e62052fc0ea1
parenta0204bb1e96bad730a658424442f873e50357928 (diff)
downloadperl-18c36e43550d746a9c9fb692226798fd0bfa58d5.tar.gz
mktables: Convert PropertyAliases.txt to use new early infrastructure
This file is crucial to compiling perl these days. This commit converts to use the new infrastructure for dealing with compiling Unicode releases prior to when this file was made available.
-rw-r--r--charclass_invlists.h2
-rw-r--r--lib/unicore/mktables19
-rw-r--r--regcharclass.h2
3 files changed, 15 insertions, 8 deletions
diff --git a/charclass_invlists.h b/charclass_invlists.h
index 7c82b7801b..b1701ed776 100644
--- a/charclass_invlists.h
+++ b/charclass_invlists.h
@@ -99521,7 +99521,7 @@ static const UV XPosixXDigit_invlist[] = { /* for EBCDIC POSIX-BC */
* 1a0687fb9c6c4567e853913549df0944fe40821279a3e9cdaa6ab8679bc286fd lib/unicore/extracted/DLineBreak.txt
* 40bcfed3ca727c19e1331f6c33806231d5f7eeeabd2e6a9e06a3740c85d0c250 lib/unicore/extracted/DNumType.txt
* a18d502bad39d527ac5586d7bc93e29f565859e3bcc24ada627eff606d6f5fed lib/unicore/extracted/DNumValues.txt
- * 5722b164bb2fc4f9de21703d289cf59733811f2aeb40a42e0d111635dd9b5517 lib/unicore/mktables
+ * 3ea969db51a2eb31c393738fa54cb0bf96568fb5ac3f35abba1c81db3b916b76 lib/unicore/mktables
* 462c9aaa608fb2014cd9649af1c5c009485c60b9c8b15b89401fdc10cf6161c6 lib/unicore/version
* c6884f4d629f04d1316f3476cb1050b6a1b98ca30c903262955d4eae337c6b1e regen/charset_translations.pl
* 7b6f61662df48e0cbfb234a926e02e5cb9468af052f7f9feb84285996f30df09 regen/mk_invlists.pl
diff --git a/lib/unicore/mktables b/lib/unicore/mktables
index b22442368d..e9649d00ad 100644
--- a/lib/unicore/mktables
+++ b/lib/unicore/mktables
@@ -9810,6 +9810,17 @@ sub _operator_not_equal {
return ! _operator_equal($self, $other);
}
+sub substitute_PropertyAliases($) {
+ # Deal with early releases that don't have the crucial PropertyAliases.txt
+ # file.
+
+ my $file_object = shift;
+ $file_object->insert_lines(get_old_property_aliases());
+
+ process_PropertyAliases($file_object);
+}
+
+
sub process_PropertyAliases($) {
# This reads in the PropertyAliases.txt file, which contains almost all
# the character properties in Unicode and their equivalent aliases:
@@ -9822,11 +9833,6 @@ sub process_PropertyAliases($) {
my $file= shift;
Carp::carp_extra_args(\@_) if main::DEBUG && @_;
- # This whole file was non-existent in early releases, so use our own
- # internal one.
- $file->insert_lines(get_old_property_aliases())
- if ! -e 'PropertyAliases.txt';
-
# Add any cjk properties that may have been defined.
$file->insert_lines(@cjk_properties);
@@ -18521,8 +18527,9 @@ my $Validation_Documentation = "Documentation of validation Tests";
# is in a version earlier than expected, so you can copy files from a later
# release into an earlier release's directory.
my @input_file_objects = (
- Input_file->new('PropertyAliases.txt', v0,
+ Input_file->new('PropertyAliases.txt', v3.2,
Handler => \&process_PropertyAliases,
+ Early => [ \&substitute_PropertyAliases ],
Required_Even_in_Debug_Skip => 1,
),
Input_file->new(undef, v0, # No file associated with this
diff --git a/regcharclass.h b/regcharclass.h
index 6b5ed14c41..fba165715a 100644
--- a/regcharclass.h
+++ b/regcharclass.h
@@ -2514,7 +2514,7 @@
* 1a0687fb9c6c4567e853913549df0944fe40821279a3e9cdaa6ab8679bc286fd lib/unicore/extracted/DLineBreak.txt
* 40bcfed3ca727c19e1331f6c33806231d5f7eeeabd2e6a9e06a3740c85d0c250 lib/unicore/extracted/DNumType.txt
* a18d502bad39d527ac5586d7bc93e29f565859e3bcc24ada627eff606d6f5fed lib/unicore/extracted/DNumValues.txt
- * 5722b164bb2fc4f9de21703d289cf59733811f2aeb40a42e0d111635dd9b5517 lib/unicore/mktables
+ * 3ea969db51a2eb31c393738fa54cb0bf96568fb5ac3f35abba1c81db3b916b76 lib/unicore/mktables
* 462c9aaa608fb2014cd9649af1c5c009485c60b9c8b15b89401fdc10cf6161c6 lib/unicore/version
* c6884f4d629f04d1316f3476cb1050b6a1b98ca30c903262955d4eae337c6b1e regen/charset_translations.pl
* d9c04ac46bdd81bb3e26519f2b8eb6242cb12337205add3f7cf092b0c58dccc4 regen/regcharclass.pl