DateTime::Format::Epoch fails two tests on Windows (Strawberry Perl
v5.10.1 (*) built for MWin32-x86-multi-thread) in t/402_format.t,
specifically the last two tests. It appears to be an issue with
Math::BigInt::GMP on Windows only. The attached patch fixes this issue
by sniffing for the OS and not using GMP if on Windows.
Subject: | Epoch.pm.patch |
--- Epoch.pm.bak 2010-03-27 08:46:34.833247188 -0400
+++ Epoch.pm 2010-03-27 08:47:18.897244168 -0400
@@ -9,7 +9,7 @@
use DateTime 0.22;
use DateTime::LeapSecond;
-use Math::BigInt ('lib' => 'GMP,Pari,FastCalc');
+use Math::BigInt ('lib' => $^O eq 'MSWin32' ? 'Pari,FastCalc' : 'GMP,Pari,FastCalc');
use Params::Validate qw/validate BOOLEAN OBJECT/;
sub _floor {