Skip Menu |

This queue is for tickets about the Time-Interval CPAN distribution.

Report information
The Basics
Id: 21350
Status: resolved
Priority: 0/
Queue: Time-Interval

People
Owner: Nobody in particular
Requestors: perl [...] downlode.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 1.21



Subject: Parsing fails with erroneous "bad descriptor" message
Attempting to use Time::Interval to get an interval between two dates, I received the following message: failed to parse date: Bad file descriptor The "Bad file descriptor" is being generated by Date::Parse. Code to replicate: ---- #!/usr/bin/perl use strict; use warnings; use Time::Interval; my $interval = getInterval( '1970-01-01', '2006-02-16', 1, # string output ); print "$interval\n"; ---- Attached is strace output, which seems to suggest that the error message is, from my limited understanding of strace output to do with Date::Zone looking for libc.mo in several places but failing to find it. As an aside, changing the first date to 1970-01-02 produces the result that would be expected. perl -v: This is perl, v5.8.8 built for i686-linux-thread-multi uname -a: Linux pinky 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005 i686 i686 i386 GNU/Linux I.e. Fedora Core 4.
Subject: strace.txt

Message body is not shown because it is too large.