[Catalyst-dev] Corrupted PNG Files after Running catalyst.pl Script

Tomas Doran bobtfish at bobtfish.net
Mon Jan 2 11:36:07 GMT 2012


On 2 Jan 2012, at 04:49, Conrad Halling wrote:

> A possible fix for this bug is to pass a ":raw" iomode to the slurp  
> method,
> as follows:
>
>    my $contents = $file->slurp( iomode =>  "<:raw" );
>
> I have not tested this solution because it appears that the
> get_sharedir_file method is used also to obtain text files, and I'm
> uncertain what the side-effects of this possible fix will be on text  
> files.

We should be slurping files verbatim, always (including the text files).

I've made this change and pushed it to master - can you try this for  
me to ensure the issue is corrected before I release it?

git://git.shadowcat.co.uk/catagits/Catalyst-Devel

Thanks in advance!

Cheers
t0m





More information about the Catalyst-dev mailing list