Subject: | param not working with UTF-8 |
Date: | Sat, 12 May 2007 14:27:11 +0200 |
To: | bug-CGI.pm [...] rt.cpan.org |
From: | Marian Ďurkovič <md [...] bts.sk> |
Hi,
seems that due to bugreport #19913 a new code was introduced into param,
which automatically calls decode if UTF-8 is being used.
However this has bad conseqeunces and breaks some applications -
like openwebmail. The problem is, that lot of perl fucntions don't accept
wide characters (md5, zlib, etc). While the original UTF-8 string passes
through them fine, after decode they all complain with e.g.
Wide character in subroutine entry at
/usr/lib/perl5/site_perl/5.8.8/IO/Compress/Adapter/Deflate.pm line 43
The attached patch against CGI.pm v3.25 solves the problem and makes
e.g. openwebmail work again.
With kind regards,
M.
--------------------------------------------------------------------------
---- ----
Show quoted text
---- Marian Ďurkovič network manager ----
---- ----
---- Slovak Technical University Tel: +421 2 524 51 301 ----
---- Computer Centre, Nám. Slobody 17 Fax: +421 2 524 94 351 ----
---- 812 43 Bratislava, Slovak Republic E-mail/sip: md@bts.sk ----
---- ----
--------------------------------------------------------------------------
Message body is not shown because sender requested not to inline it.