Bug#733027: Silence warnings about "Use of uninitialized value in lc"
    John Zaitseff 
    J.Zaitseff at zap.org.au
       
    Tue Dec 24 05:28:00 UTC 2013
    
    
  
Package: libopenoffice-oodoc-perl
Version: 2.125-2
Tags: patch
The current version of libopenoffice-oodoc-perl in Debian (and in
Ubuntu) has a rather annoying little bug: it seems to spew out
warnings of the form:
  Use of uninitialized value in lc at /usr/share/perl5/OpenOffice/OODoc/File.pm line 378.
This is due, of course, to the function "lc" being applied to a
possibly-undefined value.
The solution is to change OODoc/File.pm, line 378, from:
  my $od = lc $self->{'opendocument'};
to:
  my $od = $self->{'opendocument'};
  $od = lc $od if defined($od);
I have prepared a patch against the current Debian package that
creates a new debian/patches/silence-warnings.patch file with the
appropriate diff.
Could you please apply this patch.  Thanks!
Yours truly,
John Zaitseff
-- 
John Zaitseff                    ,--_|\    The ZAP Group
Phone:  +61 2 9643 7737         /      \   Sydney, Australia
E-mail: J.Zaitseff at zap.org.au   \_,--._*   http://www.zap.org.au/
                                      v
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libopenoffice-oodoc-perl-2.125-2zg1.diff
Type: text/x-diff
Size: 1316 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20131224/9a43c58b/attachment.diff>
    
    
More information about the pkg-perl-maintainers
mailing list