retitle 416097 character set is completely messed up on SpeedyCGI block 416097 by 416606 block 387104 by 416606 thanks
On Mon, Mar 26, 2007 at 11:40:35AM +0200, Steinar H. Gunderson wrote: > > Unfortunately this is not enough, it results in corrupted attachments. > > The attachment data is not internally tagged as utf8 (and even if it > > were, outputting arbitrary binary attachments in utf8 would probably > > not be the right thing to do.) > > Hm, OK. It still solves most of the problem for us, though. Hi, the real problem is in HTML::Mason, which behaves differently under mod_perl than in a CGI environment. I have filed #416606 about this. The fix is simple; I'm attaching the patch here too for convenience. Cheers, -- Niko Tyni [EMAIL PROTECTED]
--- /usr/share/perl5/HTML/Mason/CGIHandler.pm 2007/03/29 07:43:25 1.1 +++ /usr/share/perl5/HTML/Mason/CGIHandler.pm 2007/03/29 07:43:46 @@ -99,6 +99,9 @@ $sent_headers = 1; } + # mimic mod_perl behaviour + use bytes; + # We could perhaps install a new, faster out_method here that # wouldn't have to keep checking whether headers have been # sent and what the $r->method is. That would require