Bug#446342: libmime-perl: MIME/Field/ParamVal.pm produces unnecessary warnings

Dietmar Maurer dietmar at maurer-it.com
Fri Oct 12 10:03:59 UTC 2007


Package: libmime-perl
Version: 5.420-0.1
Severity: normal
Tags: patch


We got tons of warnings in the logs:

WARNING: Character in 'c' format wrapped in pack at /usr/share/perl5/MIME/Field/ParamVal.pm line 213

This can be fixed by replacing line 213 with (s/c/C/):

    $str =~ s/%([0-9a-fA-F]{2})/pack("C", hex($1))/ge;

I have also writte a small example in perl to produce such warning:

#!/usr/bin/perl -w

my $str = "abc%ff";

$str =~ s/%([0-9a-fA-F]{2})/pack("c", hex($1))/ge;


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libmime-perl depends on:
ii  libconvert-binhex-perl        1.119-2    Perl5 module for extracting data f
ii  libio-stringy-perl            2.110-2    Perl5 modules for IO from scalars 
ii  libmailtools-perl             1.74-1     Manipulate email in perl programs
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 

libmime-perl recommends no packages.

-- no debconf information






More information about the pkg-perl-maintainers mailing list