Skip Menu |

This queue is for tickets about the Log-Funlog-Lang CPAN distribution.

Report information
The Basics
Id: 123401
Status: open
Priority: 0/
Queue: Log-Funlog-Lang

People
Owner: Nobody in particular
Requestors: Paavo.Jumppanen [...] csiro.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.4



Subject: Use of uninitialized value in lc
Date: Fri, 27 Oct 2017 04:48:13 +0000
To: <bug-Log-Funlog-Lang [...] rt.cpan.org>
From: <Paavo.Jumppanen [...] csiro.au>
Perl 5.18.2 complains of unitialized value in lc when using Log::FunLog. More specifically, Use of uninitialized value in lc at /usr/lib/perl5/site_perl/5.18.2/Log/Funlog/Lang.pm line 121. at /usr/lib/perl5/site_perl/5.18.2/Log/Funlog/Lang.pm line 121. Log::Funlog::Lang::new('Log::Funlog::Lang') called at /usr/lib/perl5/site_perl/5.18.2/Log/Funlog.pm line 252 require Log/Funlog.pm called at test.pl line 13 main::BEGIN() called at /usr/lib/perl5/site_perl/5.18.2/Log/Funlog.pm line 0 eval {...} called at /usr/lib/perl5/site_perl/5.18.2/Log/Funlog.pm line 0 I have fixed it in my local version with this change. Can you apply the same to the CPAN source so that I won't have to fix it locally again in future. Thanks, Paavo. Change line 121 in Lang.pm from, my $LC_MESSAGES=lc(shift); To my $LC_MESSAGES=lc(shift || '');
Solved ! Thank you for your report ! Le Ven 27 Oct 2017 00:50:40, Paavo.Jumppanen@csiro.au a écrit : Show quoted text
> Perl 5.18.2 complains of unitialized value in lc when using > Log::FunLog. More specifically, > > Use of uninitialized value in lc at > /usr/lib/perl5/site_perl/5.18.2/Log/Funlog/Lang.pm line 121. > at /usr/lib/perl5/site_perl/5.18.2/Log/Funlog/Lang.pm line 121. > Log::Funlog::Lang::new('Log::Funlog::Lang') called at > /usr/lib/perl5/site_perl/5.18.2/Log/Funlog.pm line 252 > require Log/Funlog.pm called at test.pl line 13 > main::BEGIN() called at > /usr/lib/perl5/site_perl/5.18.2/Log/Funlog.pm line 0 > eval {...} called at > /usr/lib/perl5/site_perl/5.18.2/Log/Funlog.pm line 0 > > I have fixed it in my local version with this change. Can you apply > the same to the CPAN source so that I won't have to fix it locally > again in future. > > Thanks, > > > Paavo. > > Change line 121 in Lang.pm from, > > my $LC_MESSAGES=lc(shift); > > To > > my $LC_MESSAGES=lc(shift || '');