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

Niko Tyni ntyni at debian.org
Thu Apr 23 18:56:25 UTC 2009


tag 516129 patch fixed-upstream
forwarded 516129 http://rt.perl.org/rt3/Public/Bug/Display.html?id=49055
thanks

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 code produces from original URL "...&word_to_search=v%E1ros&..."
> another one: "...&word_to_search==v%C3%A1ros&..."

Hi Gabor,

I believe this is fixed in CGI.pm-3.43 with the attached patch.

Could you please grab libcgi-pm-perl 3.43-1 from unstable and verify
it works for you?

This is also [perl #49055].

Cheers,
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 516129.patch
Type: text/x-diff
Size: 1384 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20090423/2d66eb3f/attachment.patch>


More information about the Perl-maintainers mailing list