Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 42346
Status: resolved
Worked: 10 min
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: jdporter [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.54
Fixed in: (no value)



Subject: live/encoding.t fails for EUC-JP
Test failure: t/live/encoding............7/13 Use of uninitialized value in pattern match (m//) at t/live/encoding.t line 34. # Failed test ' ... Got encoding EUC-JP' # at t/live/encoding.t line 34. # undef # doesn't match '(?i-xsm:EUC-JP)' t/live/encoding............11/13 # Looks like you failed 1 test of 13. It is fetching the page at http://oops-music.com/ and checking for an encoding of EUC-JP. However, this page does not set the encoding in the HTTP headers, only inside the page, as <meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" /> And apparently, WWW::Mechanize does not look in the page content for this info, only in the headers. I recommend finding a different page to test.
Em Seg. Jan. 12 17:53:39 2009, JDPORTER escreveu: Show quoted text
> Test failure: > > t/live/encoding............7/13 Use of uninitialized value in pattern > match (m//) at t/live/encoding.t line 34. > > # Failed test ' ... Got encoding EUC-JP' > # at t/live/encoding.t line 34. > # undef > # doesn't match '(?i-xsm:EUC-JP)' > t/live/encoding............11/13 # Looks like you failed 1 test of 13. > > It is fetching the page at http://oops-music.com/ and checking for an > encoding of EUC-JP. However, this page does not set the encoding in the > HTTP headers, only inside the page, as > <meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" /> > > And apparently, WWW::Mechanize does not look in the page content for > this info, only in the headers. > > I recommend finding a different page to test.
The problem is the HTTP::Response::Encoding, you need get the path: http://rt.cpan.org/Public/Bug/Display.html?id=47033 I did and now evething is fine.
WWW::Mechanize after 1.55_02 now uses the new LWP. Please do NOT post tickets here. The Mech bug queue is at http://code.google.com/p/www-mechanize/issues/list Thanks, xoxo, Andy