Re: ANNOUNCE: DateTime::Locale 0.40 and DateTime 0.43

[email protected] (Tom Heady)
Newsgroups perl.datetime
Message-ID <[email protected]>
Rick Measham wrote:
> Dave Rolsky wrote:
>> However, it will break DateTime::Format::Strptime, apparently.
>>
>> Paging Rick Measham ;)
> 
> Thanks for the work with Locales Dave, great to get all the available 
> data in there.
> 
> I'll look at strptime in the next couple of days unless someone submits 
> a patch earlier :-D
> 

The only problem that was keeping the tests from passing was that in the 
french locale it now wants a period after month abbreviations.

Tom
DateTime-Format-StrpTime-1.0702.DateTime-Locale-0.40.patch (text/x-patch, 617 B)
diff -Naur DateTime-Format-Strptime-1.0702/t/004_locale_defaults.t DateTime-Format-Strptime-1.0702.orig/t/004_locale_defaults.t
--- DateTime-Format-Strptime-1.0702/t/004_locale_defaults.t	2008-05-19 11:32:15.000000000 -0700
+++ DateTime-Format-Strptime-1.0702.orig/t/004_locale_defaults.t	2007-09-17 17:16:15.000000000 -0700
@@ -29,9 +29,9 @@
 	['en_GB',	'%c',	'31 Dec 1998 12:34:56'],
 	# French
 #);my @tests = (
-	['fr',	'%x',	'31 déc. 1998'],
+	['fr',	'%x',	'31 déc 1998'],
 	['fr',	'%X',	'12:34:56'],
-	['fr',	'%c',	'31 déc. 1998 12:34:56'],
+	['fr',	'%c',	'31 déc 1998 12:34:56'],
 );
 
 foreach (@tests) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.