summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-05-31 20:21:13 -0600
committerKarl Williamson <public@khwilliamson.com>2012-06-02 08:29:25 -0600
commite9c4b4f8682a79064477f0b21ed5e07c2a9abad6 (patch)
tree467e8a18021457cb02f26c5fcd5ab7f4ebef55d3 /lib
parent232ed87f41007d2a269f86ec6727a2b95bccae8e (diff)
downloadperl-e9c4b4f8682a79064477f0b21ed5e07c2a9abad6.tar.gz
mktables: Allow easy generation of Unicode-deprecated files
Sometimes in debugging, etc, it is useful to have these files; this adds a single scalar to control if they get generated.
Diffstat (limited to 'lib')
-rw-r--r--lib/unicore/mktables11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/unicore/mktables b/lib/unicore/mktables
index 81240fb148..bca01478aa 100644
--- a/lib/unicore/mktables
+++ b/lib/unicore/mktables
@@ -541,6 +541,10 @@ my $MAX_LINE_WIDTH = 78;
# before normal completion.
my $debug_skip = 0;
+
+# Normally these are suppressed.
+my $write_Unicode_deprecated_tables = 0;
+
# Set to 1 to enable tracing.
our $to_trace = 0;
@@ -990,6 +994,13 @@ my %why_obsolete; # Documentation only
}
}
+if ($write_Unicode_deprecated_tables) {
+ foreach my $property (keys %why_suppressed) {
+ delete $why_suppressed{$property} if $property =~
+ / ^ Other | Grapheme /x;
+ }
+}
+
if ($v_version ge 4.0.0) {
$why_stabilized{'Hyphen'} = 'Use the Line_Break property instead; see www.unicode.org/reports/tr14';
if ($v_version ge 6.0.0) {