Skip Menu |

This queue is for tickets about the Date-Pcalc CPAN distribution.

Report information
The Basics
Id: 114375
Status: open
Priority: 0/
Queue: Date-Pcalc

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Three test files fail
I see these failures on my smoker machines (with both "p" and "c"): Test Summary Report ------------------- t/f016.t (Wstat: 0 Tests: 25 Failed: 16) Failed tests: 1-4, 6-7, 9-12, 15-17, 21-23 t/f027.t (Wstat: 0 Tests: 46 Failed: 22) Failed tests: 7-15, 22, 24-27, 30-35, 44-45 t/f028.t (Wstat: 0 Tests: 46 Failed: 22) Failed tests: 7-15, 22, 24-27, 30, 32, 34-37, 44-45

Looking at the first of these test failures, I find:


if ((($year,$mm,$dd) = Decode_Date_EU("3.1.64")) &&
($year==1964)&&($mm==1)&&($dd==3))


And surprise surprise, $year == 2064, so this is the classic "You've guessed the decade wrong" problem.

-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
 

Test patch attached.

-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Subject: 0001-Defend-Decode_Date_EU-US-against-year-being-warped-d.patch

Message body is not shown because it is too large.