Skip Menu |

This queue is for tickets about the Encode-compat CPAN distribution.

Report information
The Basics
Id: 3657
Status: open
Priority: 0/
Queue: Encode-compat

People
Owner: Nobody in particular
Requestors: jesse [...] bestpractical.com
Cc:
AdminCc:

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



Date: Wed, 27 Aug 2003 15:36:23 -0400
From: Jesse Vincent <jesse [...] bestpractical.com>
To: bug-encode-compat [...] rt.cpan.org
Subject: Encode::Compat seems to break under mason
error:� Unsupported conversion: Invalid argument at /usr/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm line 115. context:� ...� 111:� } map { 112:� Encode::Alias->find_alias($_) || lc($_) 113:� } ($_[1], $_[2]); 114:� 115:� my $result = ($from eq $to) ? $_[0] : ( 116:� $decoder{$from, $to} ||= Text::Iconv->new( $from, $to ) 117:� )->convert($_[0]); 118:� 119:� return $result; ...� code stack:� /usr/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm:115 /usr/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm:91 /opt/rt3/share/html/autohandler:40 Unsupported conversion: Invalid argument at /usr/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm line 115. Trace begun at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Exceptions.pm line 131 HTML::Mason::Exceptions::rethrow_exception('Unsupported conversion: Invalid argument at /usr/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm line 115.^J') called at /usr/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm line 115 Encode::_convert('query', 'utf8', 'utf-8') called at /usr/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm line 91 Encode::decode('utf8', 'query', 256) called at /opt/rt3/share/html/autohandler line 40 HTML::Mason::Commands::__ANON__('query', 'Owner = \'Nobody\' AND (Status = \'open\' OR Status = \'new\')') called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Component.pm line 134 HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8ecae3c)', 'query', 'Owner = \'Nobody\' AND (Status = \'open\' OR Status = \'new\')') called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 1057 eval {...}('HTML::Mason::Component::FileBased=HASH(0x8ecae3c)', 'query', 'Owner = \'Nobody\' AND (Status = \'open\' OR Status = \'new\')') called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 1056 HTML::Mason::Request::comp(undef, undef, undef, 'query', 'Owner = \'Nobody\' AND (Status = \'open\' OR Status = \'new\')') called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 331 eval {...}(undef, undef, undef, 'query', 'Owner = \'Nobody\' AND (Status = \'open\' OR Status = \'new\')') called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 331 eval {...}(undef, undef, undef, 'query', 'Owner = \'Nobody\' AND (Status = \'open\' OR Status = \'new\')') called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 290 HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x93b9d34)') called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134 eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x93b9d34)') called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134 HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x93b9d34)') called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 792 HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x908a684)', 'Apache=SCALAR(0x949b968)') called at /opt/rt3/bin/webmux.pl line 118 RT::Mason::handler('Apache=SCALAR(0x949b968)') called at /dev/null line 0 eval {...}('Apache=SCALAR(0x949b968)') called at /dev/null line 0 -- http://www.bestpractical.com/rt -- Trouble Ticketing. Free.
From: randy [...] baymountain.com
Does anyone know if it is anticipated to resolve this issue? Thanks! --Randy
[guest - Fri Feb 13 12:37:04 2004]: Show quoted text
> Does anyone know if it is anticipated to resolve this issue?
I have just released Encode::compat 0.06 which should adress this problem. Can you download it from http://aut.dyndns.org/dist/Encode-compat-0.06.tar.gz and see if it works for you? Thanks, /Autrijus/
From: medvedr [...] vrpinc.com
Autrijus, "iso-8859-1" to "utf-8" is still failing under Encode::compat 0.06: perl -e 'use Encode::compat; use Encode; Encode::from_to("aaa", "iso- 8859-1", "utf-8")' generates Unsupported conversion: Invalid argument at ...lib/Encode/compat/common.pm line 119. Is this conversion really unsupported? Where can I find the conversion map? thanks! Roman [AUTRIJUS - Fri Feb 13 16:47:00 2004]: Show quoted text
> [guest - Fri Feb 13 12:37:04 2004]:
> > Does anyone know if it is anticipated to resolve this issue?
> > I have just released Encode::compat 0.06 which should adress this > problem. > Can you download it from http://aut.dyndns.org/dist/Encode-compat- > 0.06.tar.gz > and see if it works for you? > > Thanks, > /Autrijus/