r38785 - in /branches/upstream/libwww-perl/current: Changes META.yml lib/HTTP/Message.pm lib/LWP.pm t/base/message-charset.t t/live/apache-listing.t

nhandler-guest at users.alioth.debian.org nhandler-guest at users.alioth.debian.org
Fri Jun 26 23:07:44 UTC 2009


Author: nhandler-guest
Date: Fri Jun 26 23:07:40 2009
New Revision: 38785

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=38785
Log:
[svn-upgrade] Integrating new upstream version, libwww-perl (5.828)

Modified:
    branches/upstream/libwww-perl/current/Changes
    branches/upstream/libwww-perl/current/META.yml
    branches/upstream/libwww-perl/current/lib/HTTP/Message.pm
    branches/upstream/libwww-perl/current/lib/LWP.pm
    branches/upstream/libwww-perl/current/t/base/message-charset.t
    branches/upstream/libwww-perl/current/t/live/apache-listing.t

Modified: branches/upstream/libwww-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/Changes?rev=38785&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/Changes (original)
+++ branches/upstream/libwww-perl/current/Changes Fri Jun 26 23:07:40 2009
@@ -1,3 +1,20 @@
+_______________________________________________________________________________
+2009-06-25  Release 5.828
+
+A quick new release to restore compatiblity with perl-5.6.
+
+
+Gisle Aas (4):
+      Less noisy behaviour when we can't download the documents
+      Restore perl-5.6 compatiblity [RT#47054]
+      Don't decode US-ASCII and ISO-8859-1 content
+      Some versions of Encode don't support UTF-16-BE [RT#47152]
+
+Ville Skyttä (1):
+      Spelling fixes.
+
+
+
 _______________________________________________________________________________
 2009-06-15  Release 5.827
 
@@ -69,6 +86,7 @@
       Make LWP::UserAgent constructor honor the default_headers option [RT#16637]
 
 
+
 _______________________________________________________________________________
 2009-02-16  Release 5.825
 
@@ -312,7 +330,7 @@
 Gisle Aas (13):
       Typo fix.
       Add HTTP::Message::decodable()
-      Use decoded_content in the synposis
+      Use decoded_content in the synopsis
       Avoid adding an empty first part in $mess->add_part()
       Get rid of all the manual dependency tests.
       Simplify the Makefile.PL (no interactivity)
@@ -509,7 +527,7 @@
     HTML::Form: The parse method now takes hash style optional
     arguments and the old verbose behaviour is now off by default.
     
-    HTML::Form: Accept <select multiple=""> for compatibilty with
+    HTML::Form: Accept <select multiple=""> for compatibility with
     other browsers.  Patch by Josh Rai <josh at rai.name>.
 
     HTML::Form: Sane handling of 'disabled' for ListInput.
@@ -613,9 +631,9 @@
 
     Release 5.802
 
-    The HTTP::Message object now have a decoded_content() method.
+    The HTTP::Message object now has a decoded_content() method.
     This will return the content after any Content-Encodings and
-    charsets has been decoded.
+    charsets have been decoded.
 
     Compress::Zlib is now a prerequisite module.
 
@@ -909,7 +927,7 @@
     introduced in 5.72 was broken and provided a patch for that.
 
     Not all ftp servers return 550 responses when trying to
-    to RETR a directory.  Microsofts IIS is one of those.
+    to RETR a directory.  Microsoft's IIS is one of those.
     Patch provided by Thomas Lotterer <thl at dev.de.cw.com>.
     
     Some documentation tweaks.
@@ -950,7 +968,7 @@
     redirects to the same URL to get a cookie set did not work.
     Based on a patch by Sean M. Burke <sburke at cpan.org>.
 
-    NTML authentication should continue to fail if the Authen::NTLM
+    NTLM authentication should continue to fail if the Authen::NTLM
     module can't be loaded.  LWP used to think the scheme was
     available as soon as the module stash showed up.  Not it looks
     for the authenticate method to be defined.  Patch by Jan Dubois.
@@ -978,7 +996,7 @@
     Patch by Matthew Eldridge <eldridge at Graphics.Stanford.EDU>.
 
     lwp-request now prints unsuccessful responses in the same way
-    as successsful ones.  The status will still indicate failures.
+    as successful ones.  The status will still indicate failures.
     Based on a patch by Steve Hay <steve.hay at uk.radan.com>.
 
     HTML::Form's dump now also print alternative value names.
@@ -1900,7 +1918,7 @@
 
  o  LWP::UserAgent will lowercase all authentication parameter names
     before passing it to the authentication module.  Previous releases
-    ignored parameters like; Realm="Foo" (bacause Realm contained
+    ignored parameters like; Realm="Foo" (because Realm contained
     upper case letters).
 
  o  LWP::Protocol::ftp test for If-Modified-Since was wrong.
@@ -2183,7 +2201,7 @@
 
  o  LWP::Protocol::ftp patch from  Tony Finch <fanf at demon.net>.
 
- o  Removed depreciated modules from the distibution; HTML::Parse,
+ o  Removed deprecated modules from the distribution; HTML::Parse,
     LWP::Socket, LWP::SecureSocket, LWP::IO, LWP::TkIO.
 
 
@@ -2198,7 +2216,7 @@
  o  HTML::Parser patch by Brian McCauley <B.A.McCauley at bham.ac.uk>.
     Pass original text to end() method.
 
- o  The HTML::Parser->netscape_buggy_comment method is depreciated.
+ o  The HTML::Parser->netscape_buggy_comment method is deprecated.
     Use HTML::Parser->strict_comment instead.  The default value
     has changed with the name.
 
@@ -2640,7 +2658,7 @@
 
  o  Release 5.02
 
- o  lwp-rget:  Initialize proxy settings from envirionment
+ o  lwp-rget:  Initialize proxy settings from environment
 
  o  HTML::Entities::encode_entities: Don't encode $ and %
 
@@ -2778,7 +2796,7 @@
 
  o  Trap exceptions (die) from the response callback routine
 
- o  The RobotUA now requires an e-mail address of the person reponsible
+ o  The RobotUA now requires an e-mail address of the person responsible
     for the robot.
 
  o  New $ua->from() method.
@@ -2841,7 +2859,7 @@
 
  o  GET ftp://host/doc was never successful for normal files.
 
- o  LWP::Socket: read_until() did not notice EOF condidtion.  I.e. if
+ o  LWP::Socket: read_until() did not notice EOF condition.  I.e. if
     a HTTP server closed the connection before any output was generated,
     the we continued to read 0 bytes in a busy loop until the alarm()
     killed us.
@@ -2853,7 +2871,7 @@
 
  o  No longer print message content in HTTP::Response::error_as_HTML()
 
- o  Access to "file:/path" gave warning when the envirionment variable
+ o  Access to "file:/path" gave warning when the environment variable
     no_proxy was set.
 
  o  The http-post test sends a Content-Type header.  Some servers hang
@@ -2882,7 +2900,7 @@
  o  Does not try generate password for ftp-URLs unless the username is
     "anonymous" or "ftp"
 
- o  The LWP::Simple user agent proxy settings are intialized from
+ o  The LWP::Simple user agent proxy settings are initialized from
     the proxy environment variables. 
 
  o  LWP::Protocol::ftp: Use the Net::FTP library to access ftp servers.
@@ -2986,7 +3004,7 @@
            vms_path
 
  o  URI::Escape now semi-compile regular expressions (by evaling an
-    anonymous sub).  Same techinque is also used in HTML::Entities.
+    anonymous sub).  Same technique is also used in HTML::Entities.
 
  o  HTTP::Date parser rewritten using regular expressions.
 
@@ -3007,7 +3025,7 @@
  o  The HTML::Formatter now knows about <menu> and <dir> tags
 
  o  The construct "defined ref($arg)" did not work on perl5.002
-    becase ref now always return something defined.
+    because ref now always return something defined.
 
  o  LWP::UserAgent sends by default an 'User-Agent' header.
 
@@ -3033,7 +3051,7 @@
     perl4 as 'perl'.  The mirror script is not installed by
     default.
 
- o  LWP::Socket::_getaddress() Numerical IP adresses did not work.
+ o  LWP::Socket::_getaddress() Numerical IP addresses did not work.
 
  o  LWP::Socket::pushback() did not work.  This also avoids the bad
     pp_select() core dump from perl.
@@ -3066,9 +3084,9 @@
 Thu Sep 14 1995   Gisle Aas <aas at oslonett.no>
 
  o  Speedups and bug fixes in the HTML parser.  The parser now
-    understands some more depreciated tags (like <xmp> and <listing>).
-
- o  HTML::Elements are now stingified using perl overloading.
+    understands some more deprecated tags (like <xmp> and <listing>).
+
+ o  HTML::Elements are now stringified using perl overloading.
     The interface to the traverse() callback has changed.
 
  o  Implemented HTML formatters for plain text and Postscript.
@@ -3108,7 +3126,7 @@
 
  o  Moved Base64 to MIME::Base64.  Reimplemented MIME::Base64 by using
     [un]pack("u",...)   Implemented LWP::MIME::QuotedPrint for
-    completness sake.  Routine names has changed as suggested by Tim
+    completeness' sake.  Routine names has changed as suggested by Tim
     Bunce.
 
  o  LWP::MediaType reads default types from media.types file.
@@ -3231,7 +3249,7 @@
  o  Use "\015\012" instead of "\r\n" in protocol modules.  Some systems
     define \r and \n differently.
 
- o  request program can now handle documents that needs autorization by
+ o  request program can now handle documents that needs authorization by
     prompting the user for username/password. Added new -S option to print
     request/response chain.
 
@@ -3305,7 +3323,7 @@
 Fri Jul 14 1995   Gisle Aas <aas at oslonett.no>
 
  o  Reorganized directories.  Moved LWP.pm up.  Moved file.pm and http.pm
-    into the LWP::Protocol direcotory.  Moved LWP out of the lib directory
+    into the LWP::Protocol directory.  Moved LWP out of the lib directory
     and removed lib.
 
  o  Implemented the "get" and "mirror" scripts in the "bin" directory.
@@ -3338,7 +3356,7 @@
     "use LWP 1.0;" if you need at least this version.
 
  o  Various cleanups and arranging layout as I like it.  Use fooBar-style
-    (as opposed to foo_bar stype) everywhere.  This means that as_string()
+    (as opposed to foo_bar style) everywhere.  This means that as_string()
     now is called asString().
 
  o  Added more documentation.
@@ -3347,7 +3365,7 @@
 
 Wed Jun 14 1995   Gisle Aas <aas at oslonett.no>
 
- o  Removed lot of rendundant & before function calls.
+ o  Removed lot of redundant & before function calls.
 
  o  $this --> $self
 

Modified: branches/upstream/libwww-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/META.yml?rev=38785&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/META.yml (original)
+++ branches/upstream/libwww-perl/current/META.yml Fri Jun 26 23:07:40 2009
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               libwww-perl
-version:            5.827
+version:            5.828
 abstract:           The World-Wide Web library for Perl
 author:
     - Gisle Aas <gisle at activestate.com>

Modified: branches/upstream/libwww-perl/current/lib/HTTP/Message.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/lib/HTTP/Message.pm?rev=38785&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/lib/HTTP/Message.pm (original)
+++ branches/upstream/libwww-perl/current/lib/HTTP/Message.pm Fri Jun 26 23:07:40 2009
@@ -2,7 +2,7 @@
 
 use strict;
 use vars qw($VERSION $AUTOLOAD);
-$VERSION = "5.827";
+$VERSION = "5.828";
 
 require HTTP::Headers;
 require Carp;
@@ -384,7 +384,7 @@
 		$self->content_charset ||
 		"ISO-8859-1"
 	    );
-	    if ($charset ne "none") {
+	    unless ($charset =~ /^(?:none|us-ascii|iso-8859-1)\z/) {
 		require Encode;
 		if (do{my $v = $Encode::VERSION; $v =~ s/_//g; $v} < 2.0901 &&
 		    !$content_ref_iscopy)

Modified: branches/upstream/libwww-perl/current/lib/LWP.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/lib/LWP.pm?rev=38785&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/lib/LWP.pm (original)
+++ branches/upstream/libwww-perl/current/lib/LWP.pm Fri Jun 26 23:07:40 2009
@@ -1,6 +1,6 @@
 package LWP;
 
-$VERSION = "5.827";
+$VERSION = "5.828";
 sub Version { $VERSION; }
 
 require 5.005;

Modified: branches/upstream/libwww-perl/current/t/base/message-charset.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/t/base/message-charset.t?rev=38785&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/t/base/message-charset.t (original)
+++ branches/upstream/libwww-perl/current/t/base/message-charset.t Fri Jun 26 23:07:40 2009
@@ -1,6 +1,19 @@
 #!perl -w
 
 use strict;
+
+BEGIN {
+    eval {
+	require Encode;
+	Encode::find_encoding("UTF-16-BE") || die "Need a version of Encode that supports UTF-16-BE";
+    };
+    if ($@) {
+	print "1..0 # Skipped: Encode not available\n";
+	print $@;
+	exit;
+    }
+}
+
 use Test;
 plan tests => 21;
 

Modified: branches/upstream/libwww-perl/current/t/live/apache-listing.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/t/live/apache-listing.t?rev=38785&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/t/live/apache-listing.t (original)
+++ branches/upstream/libwww-perl/current/t/live/apache-listing.t Fri Jun 26 23:07:40 2009
@@ -17,6 +17,12 @@
 
 for my $url (@urls) {
     print "# $url\n";
-    my @listing = parse_dir(get($url),undef,"apache");
+    my $dir = get($url);
+    unless ($dir) {
+	print "# Can't get document at $url\n";
+	ok(0);
+	next;
+    }
+    my @listing = parse_dir($dir, undef, "apache");
     ok(@listing);
 }




More information about the Pkg-perl-cvs-commits mailing list