[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-datetime
Subject:    DateTime false test failure on 5.6
From:       Zefram <zefram () fysh ! org>
Date:       2010-01-14 21:29:06
Message-ID: 20100114212906.GH24719 () fysh ! org
[Download RAW message or body]

A bug in perl 5.6, some interaction between "use utf8" and regexps,
is causing false test failures for DateTime on 5.6.  Attached patch fixes.

-zefram


diff -ur DateTime-0.53.orig/t/13strftime.t DateTime-0.53.mod0/t/13strftime.t
--- DateTime-0.53.orig/t/13strftime.t	2009-12-06 21:14:20.000000000 +0000
+++ DateTime-0.53.mod0/t/13strftime.t	2010-01-14 21:26:38.000000000 +0000
@@ -39,7 +39,7 @@
         next;
     }
 
-    my ($fmt, $res) = split /[ ]{2}/, $line, 2;
+    my ($fmt, $res) = split /  /, $line, 2;
 
     if ( $fmt eq '%A' && $locale eq 'it' && $] >= 5.006 && $] <= 5.008 )
     {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic