Bug#574627: libdate-manip-perl: Use of EASTER flag in config file results in error
gregor herrmann
gregoa at debian.org
Fri Mar 19 15:06:51 UTC 2010
On Fri, 19 Mar 2010 14:10:08 +0000, Steve Brown wrote:
> 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 ]
> ./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
I can reproduce this error with your minimal ~/.DateManip.cnf.
If I copy the whole example .DateManip.cnf to ~/ the test works.
If I change ~/.DateManip.cnf to
<begin>
*HOLIDAY
1*0:0:0:0:0:0*EASTER = Easter
<end>
(like in the example config) it also works.
Seems like the syntax without the trailing " = Easter" is just wrong
:)
Cheers,
gregor
--
.''`. http://info.comodo.priv.at/ -- GPG Key IDs: 0x8649AA06, 0x00F3CFE4
: :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
`- NP: The Doors: Riders on the Storm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20100319/d8015adc/attachment.pgp>
More information about the pkg-perl-maintainers
mailing list