This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
porting/diag.t: Handle some E<> pod escapes
authorKarl Williamson <khw@cpan.org>
Thu, 11 Feb 2016 03:46:39 +0000 (20:46 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 11 Feb 2016 04:16:43 +0000 (21:16 -0700)
These can occur in perldiag, and so must be converted into the character
that the internal message outputs.  This commit causes the major ones of
these to be converted.

t/porting/diag.t

index 7c94aa0..ccde8cb 100644 (file)
@@ -91,6 +91,9 @@ while (<$diagfh>) {
 
     $cur_entry =~ s/\n/ /gs; # Fix multi-line headers if they have \n's
     $cur_entry =~ s/\s+\z//;
+    $cur_entry =~ s/E<lt>/</g;
+    $cur_entry =~ s/E<gt>/>/g;
+    $cur_entry =~ s,E<sol>,/,g;
     $cur_entry =~ s/[BCIFS](?:<<< (.*?) >>>|<< (.*?) >>|<(.*?)>)/$+/g;
 
     if (exists $entries{$cur_entry} &&  $entries{$cur_entry}{todo}