[Catalyst-dev] Corrupted PNG Files after Running catalyst.pl
Script
Conrad Halling
conrad.halling at gmail.com
Tue Jan 3 02:12:13 GMT 2012
Tomas Doran wrote:
> 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
The fix works. Thanks!
--
Conrad Halling
conrad.halling at sphaerula.com
More information about the Catalyst-dev
mailing list