Skip Menu |
 

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 61585
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: felix.ostmann [...] thewar.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 5.835
  • 5.837
Fixed in: (no value)



Subject: charset detection in decode_content not working
Download (untitled) / with headers
text/plain 580b
from HTTP::Message: my $charset = lc( $opt{charset} || $self->content_type_charset || $opt{default_charset} || $self->content_charset || "ISO-8859-1" ); content_type_charset can only contains "text/html" without encoding informationen. But content_charset detect the right encoding from the meta-informations. But that is to late. And iso-8859-1 will then be blocked by the hardcoded list! I dont understand the code exactly, in content_charset it first calls $self->content_type_charset, but that returns different from my $obj->content_type_charset.
From: felix.ostmann [...] thewar.de
Download (untitled) / with headers
text/plain 389b
after another short test: there is a infinity loop in decoded_content. my $charset = lc( $opt{charset} || $self->content_type_charset || $opt{default_charset} || $self->content_charset || "ISO-8859-1" ); $self->content_charset will call other functions, that will call decoded_content ... (that part is from decoded_content).
What's you infinite loop test case?
From: felix.ostmann [...] thewar.de
Download (untitled) / with headers
text/plain 400b
Am Do 23. Sep 2010, 15:39:05, GAAS schrieb: Show quoted text
> What's you infinite loop test case?
i added for debug following at the same position: print "TEST1: ",$opt{charset},"\n"; print "TEST2: ",$self->content_type_charset,"\n"; print "TEST3: ",$opt{default_charset},"\n"; print "TEST4: ",$self->content_charset,"\n"; and i see: TEST1: xyz TEST2: xyz TEST3: xyz TEST1: xyz TEST2: xyz TEST3: xyz TEST1: xyz ...
Download (untitled) / with headers
text/plain 187b
Sorry, I'm not able to reproduce anything from this description. Please provide complete examples (that I can run here) that demonstrates failing charset detection and the infinite loop.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.