In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/e6eb90205a8cd8f42cd4d1226ea369f3ff1a14ae?hp=5f3e44b689cab8bd7cec81aa6fc21c2ec5b3489f>

- Log -----------------------------------------------------------------
commit e6eb90205a8cd8f42cd4d1226ea369f3ff1a14ae
Author: David Mitchell <[email protected]>
Date:   Tue Jun 8 00:08:19 2010 +0100

    perlbug: always allow change of sender address
    
    The code that guessed a default sender address would under some
    circumstances not display this guess to the user with the option to change
    it. Specifically, if $Config{cf_me} eq {login id of the user running
    perlbug}.
    
    In my case, cf_email got set at build time (Configure default) of
    'da...@pigeon.(none)', which was then silently used. Not good!

M       utils/perlbug.PL

commit 4ea8010ab3e95796683d1a69375c8df8c4bea3fb
Author: David Mitchell <[email protected]>
Date:   Mon Jun 7 23:28:26 2010 +0100

    perlbug -d,-v: fix uninit value warnings

M       utils/perlbug.PL
-----------------------------------------------------------------------

Summary of changes:
 utils/perlbug.PL |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/utils/perlbug.PL b/utils/perlbug.PL
index 184c016..38f2b3b 100644
--- a/utils/perlbug.PL
+++ b/utils/perlbug.PL
@@ -456,11 +456,12 @@ EOF
     }
 
     # Prompt for return address, if needed
-    unless ($from) {
+    unless ($::opt_r) {
        # Try and guess return address
        my $guess;
 
-       $guess = $ENV{'REPLY-TO'} || $ENV{'REPLYTO'} || $ENV{'EMAIL'} || '';
+       $guess = $ENV{'REPLY-TO'} || $ENV{'REPLYTO'} || $ENV{'EMAIL'}
+           || $from || '';
         if ($Is_MacOS) {
             require Mac::InternetConfig;
             $guess = $Mac::InternetConfig::InternetConfig{
@@ -716,6 +717,10 @@ EOF
 sub Dump {
     local(*OUT) = @_;
 
+    # these won't have been set if run with -d
+    $category ||= 'core';
+    $severity ||= 'low';
+
     print OUT <<EFF;
 ---
 Flags:
@@ -784,6 +789,7 @@ EOF
        my $value;
        foreach (sort keys %::Config) {
            $value = $::Config{$_};
+           $value = '' unless defined $value;
            $value =~ s/'/\\'/g;
            print OUT "$_='$value'\n";
        }

--
Perl5 Master Repository

Reply via email to