Bug#516129: perl-modules: CGI.pm unwanted UTF-8 conversion in URLs

Niko Tyni ntyni at debian.org
Thu Feb 19 13:12:54 UTC 2009


On Thu, Feb 19, 2009 at 01:54:48PM +0100, Gabor Kiss wrote:
> Package: perl-modules
> Version: 5.10.0-19
> Severity: normal
> 
> Function url(-path-info=>1) does not work well if I have ISO-8859-2
> accented chars in the URL. Utility function CGI::Util::escape()
> unconditionally forces an ISO-8859-1 -> UTF-8 conversion:
> 
>   # force bytes while preserving backward compatibility -- dankogai
>   $toencode = pack("C*", unpack("U0C*", $toencode));

This part of the code was changed in CGI.pm 3.30, while perl-modules has 3.29.

http://search.cpan.org/diff?from=CGI.pm-3.29&to=CGI.pm-3.31#CGI/Util.pm

Could you please check if installing the separate libcgi-pm-perl package
(lenny is at 3.38, squeeze/sid at 3.42) fixes this for you?
-- 
Niko Tyni   ntyni at debian.org






More information about the Perl-maintainers mailing list