This is a problem with the recent release of libwww-perl. I haven't been
able to work around it yet.
Tue Apr 29 15:27:58 2008The RT System itself - Status changed from 'new' to 'open'
Sat May 03 21:08:46 2008MARKSTOS [...] cpan.org - Correspondence added
Subject:
test cases fail on 0.41 (new patch for libwww-perl helps?)
Yesterday I spotted a regression in the latest libwww-perl and was able
to pinpoint and patch. You can grab the patch here:
http://rt.cpan.org/Ticket/Display.html?id=35607
I have no idea if it is related to your test failures or not.
Mark
Sun May 04 17:15:01 2008danielmcbrearty [...] gmail.com - Correspondence added
From:
danielmcbrearty [...] gmail.com
I took a look at this today.
The issue seems to be todo with the following code added in HTTP::Message
*_utf8_downgrade = defined(&utf8::downgrade) ?
sub {
utf8::downgrade($_[0], 1) or
Carp::croak("HTTP::Message content must be bytes")
}
:
sub {
};
this sub is called in the new and also the _set_content methods. The
latter causes the problem with the lines:
# For some reason Test::WWW::Mechanize uses $response->content everywhere
# instead of $response->decoded_content;
$response->content( $response->decoded_content );
in T:W:M:C::_make_request() method.
This downgrading of UTF8 to bytes is new in HTTP::Message, but I can
only guess at the dev's real intentions, so have no idea as to whether
the real problem lies there or in T:W:M:C itself.
The UTF8 downgrading did not happen in previous versions of
HTTP::Message though, and so I would guess that commenting out the croak
is a fairly safe workaround for now, for those people who want to
install this code without forcing. Of course, I could be wrong ... :-)
Thu May 15 07:40:52 2008domm [...] cpan.org - Correspondence added
On Di. 29. Apr. 2008, 15:27:56, LBROCARD wrote:
Show quoted text
> This is a problem with the recent release of libwww-perl. I haven't been
> able to work around it yet.
here's a very rough workaround, that causes some warnings in
WWW::Mechanize...
diff -ur WWW-Mechanize-1.34/lib/WWW/Mechanize.pm WWW-Mechanize-1.34-patched/lib/WWW/Mechanize.pm
--- WWW-Mechanize-1.34/lib/WWW/Mechanize.pm 2007-12-10 07:31:20.000000000 +0100
+++ WWW-Mechanize-1.34-patched/lib/WWW/Mechanize.pm 2008-05-15 13:28:03.000000000 +0200
@@ -2148,7 +2148,7 @@
# See docs in HTTP::Message for details. Do we need to expose the options there?
# use charset => 'none' because while we want LWP to handle Content-Encoding for
# the auto-gzipping with Compress::Zlib we don't want it messing with charset
- my $content = $res->decoded_content( charset => 'none' );
+ my $content = $res->decoded_content();
$content = $res->content if (not defined $content);
$content .= _taintedness();
Only in WWW-Mechanize-1.34-patched/: Makefile.old
diff -ur WWW-Mechanize-1.34/t/local/log-server WWW-Mechanize-1.34-patched/t/local/log-server
--- WWW-Mechanize-1.34/t/local/log-server 2007-08-27 02:47:30.000000000 +0200
+++ WWW-Mechanize-1.34-patched/t/local/log-server 2008-05-15 13:14:10.000000000 +0200
@@ -88,7 +88,7 @@
<a href="/foo1.save_log_server_test.tmp">Link foo1.save_log_server_test.tmp</a>
<a href="/foo2.save_log_server_test.tmp">Link foo2.save_log_server_test.tmp</a>
<a href="/foo3.save_log_server_test.tmp">Link foo3.save_log_server_test.tmp</a>
- <a href="/o-umlaut">Löschen -- testing for o-umlaut.</a>
+ <a href="/o-umlaut">Löschen -- testing for o-umlaut.</a>
<a href="/o-umlaut-encoded">Stösberg -- testing for encoded o-umlaut.</a>
<table>
Mon Jun 02 01:25:28 2008chris+rt [...] chrisdolan.net - Correspondence added
From:
cpan [...] chrisdolan.net
On Thu May 15 07:40:52 2008, DOMM wrote:
Show quoted text
> On Di. 29. Apr. 2008, 15:27:56, LBROCARD wrote:
> > This is a problem with the recent release of libwww-perl. I haven't been
> > able to work around it yet.
>
> here's a very rough workaround, that causes some warnings in
> WWW::Mechanize...
The simplest workaround I've found is:
"cpan install GAAS/libwww-perl-5.808.tar.gz"
;-)
Mon Oct 27 09:59:30 2008leon [...] astray.com - Correspondence added
Thanks, this is fixed in 0.50.
Mon Oct 27 09:59:35 2008leon [...] astray.com - Status changed from 'open' to 'resolved'
Mon Oct 27 16:37:54 2008toddr [...] cpanel.net - Correspondence added
From:
todd.e.rinaldo [...] jpmorgan.com
On Mon Oct 27 09:59:30 2008, LBROCARD wrote:
Show quoted text
> Thanks, this is fixed in 0.50.
TWMC is on .44 right now. Are we jumping versions or are you referring
to fixed in .50 of some other package?
Thanks,
Mon Oct 27 16:38:08 2008The RT System itself - Status changed from 'resolved' to 'open'
Tue Oct 28 10:02:42 2008leon [...] astray.com - Correspondence added
Whoops, I meant "Fixed in 0.44, which requires WWW::Mechanize 1.50".
Cheers, Leon
Tue Oct 28 10:02:45 2008leon [...] astray.com - Status changed from 'open' to 'resolved'