This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
lib/ExtUtils/typemap: silence g++ warning.
[perl5.git] / lib / diagnostics.pm
index a85f282..40c6748 100644 (file)
@@ -194,6 +194,7 @@ our $TRACEONLY = 0;
 our $WARNTRACE = 0;
 
 use Config;
+use Text::Tabs 'expand';
 my $privlib = $Config{privlibexp};
 if ($^O eq 'VMS') {
     require VMS::Filespec;
@@ -366,6 +367,7 @@ my %msg;
                {
                    next;
                }
+               $_ = expand $_;
                s/^/    /gm;
                $msg{$header} .= $_;
                for my $h(@headers) { $msg{$h} .= $_ }