This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mktables: Allow easy generation of Unicode-deprecated files
authorKarl Williamson <public@khwilliamson.com>
Fri, 1 Jun 2012 02:21:13 +0000 (20:21 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 2 Jun 2012 14:29:25 +0000 (08:29 -0600)
Sometimes in debugging, etc, it is useful to have these files; this adds
a single scalar to control if they get generated.

lib/unicore/mktables

index 81240fb..bca0147 100644 (file)
@@ -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) {