[Orca-users] Web page logos corrupt under Linux

Charles R. Dennett charlie at dennett.org
Fri Jun 27 19:47:00 PDT 2003



Blair Zajac wrote:
> Hi Charlie,
> 
> Yes, it's a problem with Perl modifying the output when it's creating
> the output PNG and GIF files.  I think it has to do with UTF8 and it
> modifying the output.
> 
> The solution is to apply this patch to orca.pl.in which writes the file
> in binmode.
> 
> Index: orca.pl.in
> ===================================================================
> --- orca.pl.in     (revision 219)
> +++ orca.pl.in     (revision 230)
> @@ -277,7 +277,11 @@
>      } elsif (/OPEN (.*)/) {
>        $image_filename = "$config_global{html_dir}/$1";
>        print "Creating $1.\n" if $opt_verbose;
> -      unless (open(ORCA_WRITE, ">$image_filename")) {
> +      if (open(ORCA_WRITE, ">$image_filename")) {
> +        # Some of these generated files are images, so always open in
> +        # binary mode.
> +        binmode ORCA_WRITE;
> +      } else {
>          warn "$0: cannot open `$image_filename' for writing: $!\n";
>          $image_filename = '';
>        }
> 
> 
> 
>>You can see the Orca graphs at http://www.dennett.org/orca/procallator/
>>and scroll to the bottom of any page to see the missing logos.
> 
> 
> Do you mind me adding a link from orcaware.com to your site?
> 


Thanks!  That did it.

Feel free to add the link.  The system might not be up all the time.
It's still the family PC.  It's dual boot W2K and RH9.  But, older son
will be going back to college and younger son will be starting college
at the end of summer.  Older son has his own PC on my LAN but mine is
much better for gaming, which he likes.  Younger son just got his
computer today and it about the same as mine.  So, after they're gone, I
should have this all to myself. Still use windows for my genealogy
software and home finances, but looking to convert those to Linux some day.

BTW, system is custom built.  Asus A7V8X motherboard, AMD XP2600+
processor, 333 Mhz FSB, 512 MB DDR memory, 2-60 gig drives, MSI Ti4200
GForce4 video board w/ 128 MB DDR memory. 52x CD-ROM and 52x CR-RW.

I brought home from work a copy of orcallator.se to see how it gathered
data from the web logs.  Maybe I can try adding web stuff to procallator
some day.  If I do I'll submit it.  Don't hold your breath. The
weather's too nice to stay indoors!

Again, thanks for everything.

Charlie







More information about the Orca-users mailing list