Bug#574627: libdate-manip-perl: Use of EASTER flag in config file results in error
Steve Brown
reportbug at connectionservices.com
Fri Mar 19 14:10:08 UTC 2010
Package: libdate-manip-perl
Version: 5.54-1
Severity: normal
Defining a holiday in the global or personal config file using the EASTER flag as per the manual, or example
config file, results in a runtime error.
To test:
1. Create a .DateManip.cnf file in your home directory containing for example
[ begin .DateManip.cnf ]
*HOLIDAY
1*0:0:0:0:0:0*EASTER
[ end .DateManip.cnf ]
2. Create a test script for example
[ begin test.pl ]
#!/usr/bin/perl
use Date::Manip;
print ParseDate("Thu 18 Mar 12:15:01 PM");
[ end test.pl ]
3. run ./test.pl
4. Result:
./test.pl
ERROR: invalid Date::Manip config file line.
1*0:0:0:0:0:0*EASTER
at /usr/share/perl5/Date/Manip.pm line 5404
Date::Manip::_Date_InitFile('/home/blah/.DateManip.cnf') called at /usr/share/perl5/Date/Manip.pm
line 317
Date::Manip::Date_Init() called at /usr/share/perl5/Date/Manip.pm line 1463
Date::Manip::ParseDate('Thu 18 Mar 12:15:01 PM') called at ./test.pl line 5
Commenting out the line in the cnf file gives a clean run.
-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages libdate-manip-perl depends on:
ii perl 5.10.0-19lenny2 Larry Wall's Practical Extraction
libdate-manip-perl recommends no packages.
libdate-manip-perl suggests no packages.
-- no debconf information
More information about the pkg-perl-maintainers
mailing list