+_______________________________________________________________________________
+2010-09-20 Release 5.837
+
+David E. Wheeler (1):
+ Fix for Encode 2.40
+
+Gisle Aas (2):
+ Fix Perl syntax error in synopsis
+ Allow ISO 8601 date strings when parsing Apache file listings
+
+
+
_______________________________________________________________________________
2010-05-13 Release 5.836
--- #YAML:1.0
name: libwww-perl
-version: 5.836
+version: 5.837
abstract: The World-Wide Web library for Perl
author:
- Gisle Aas <gisle@activestate.com>
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.55_02
+generated_by: ExtUtils::MakeMaker version 6.56
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
package File::Listing;
sub Version { $VERSION; }
-$VERSION = "5.814";
+$VERSION = "5.837";
require Exporter;
@ISA = qw(Exporter);
local($_) = shift;
my($tz, $error) = @_; # ignored for now...
- if (m!<A\s+HREF=\"([^\"]+)\">.*</A>.*?(\d+)-([a-zA-Z]+)-(\d+)\s+(\d+):(\d+)\s+(?:([\d\.]+[kM]?|-))!i) {
+ if (m!<A\s+HREF=\"([^\"]+)\">.*</A>.*?(\d+)-([a-zA-Z]+|\d+)-(\d+)\s+(\d+):(\d+)\s+(?:([\d\.]+[kMG]?|-))!i) {
my($filename, $filesize) = ($1, $7);
my($d,$m,$y, $H,$M) = ($2,$3,$4,$5,$6);
+ if ($m =~ /^\d+$/) {
+ ($d,$y) = ($y,$d) # iso date
+ }
+ else {
+ $m = _monthabbrev_number($m);
+ }
$filesize = 0 if $filesize eq '-';
if ($filesize =~ s/k$//i) {
$filesize = int $filesize;
require Time::Local;
- my $filetime = Time::Local::timelocal(0,$M,$H,$d,_monthabbrev_number($m)-1,_guess_year($y)-1900);
+ my $filetime = Time::Local::timelocal(0,$M,$H,$d,$m-1,_guess_year($y)-1900);
my $filetype = ($filename =~ s|/$|| ? "d" : "f");
return [$filename, $filetype, $filesize, $filetime, undef];
}
use HTTP::Headers::Util qw(_split_header_words join_header_words);
use vars qw($VERSION $EPOCH_OFFSET);
-$VERSION = "5.833";
+$VERSION = "5.837";
# Legacy: because "use "HTTP::Cookies" used be the ONLY way
# to load the class HTTP::Cookies::Netscape.
use HTTP::Cookies;
$cookie_jar = HTTP::Cookies->new(
- file => "$ENV{'HOME'}/lwp_cookies.dat',
+ file => "$ENV{'HOME'}/lwp_cookies.dat",
autosave => 1,
);
use strict;
use vars qw($VERSION $AUTOLOAD);
-$VERSION = "5.835";
+$VERSION = "5.837";
require HTTP::Headers;
require Carp;
return "US-ASCII" unless /[\x80-\xFF]/;
require Encode;
eval {
- Encode::decode_utf8($_, Encode::FB_CROAK());
+ Encode::decode_utf8($_, Encode::FB_CROAK() | Encode::LEAVE_SRC());
};
return "UTF-8" unless $@;
return "ISO-8859-1";