This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perluniprops: Omit mention of zero-length special tables
authorKarl Williamson <public@khwilliamson.com>
Wed, 16 May 2012 03:26:23 +0000 (21:26 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 2 Jun 2012 14:29:22 +0000 (08:29 -0600)
Some tables generated by mktables are special, not for external
consumption.  These should not be called out when they turn out to be
zero length, as they are in some Unicode versions

lib/unicore/mktables

index a2b403b..cd8d1ab 100644 (file)
@@ -14044,7 +14044,10 @@ sub make_re_pod_entries($) {
 
         # First, gather all the info that applies to this table as a whole.
 
-        push @zero_match_tables, $table if $count == 0;
+        push @zero_match_tables, $table if $count == 0
+                                            # Don't mention special tables
+                                            # as being zero length
+                                           && $table->fate == $ORDINARY;
 
         my $table_property = $table->property;