Robert Fausey wrote:
On a system with a fresh install of 8.0 I get a segmentation fault with
the following perl

#!/usr/bin/perl

@current_rpms = `rpm -qa`;

foreach $rpm ( @current_rpms ) {
   chomp $rpm;
   @words = split( /-[0-9]/, $rpm );
   $RPMdb{ $words[0] } = $words[0];

}

BUT on a system that has been upgraded to 8.0 the script runs.  I used
the same CDs on both systems and the CDs verifited.


Rob Fausey.
I finally figured it out--it must have been the discussion on the man pages ;o)

Try calling the program with LANG=C. Like this:

$ LANG=C ./perl.program

I am not sure why it has problems, but it does. Now I can build the splash image using:

pngtopnm syslinux-splash.png | LANG=C ppmtolss16 > temp.lss16

Of course, you can add LANG=C to your favorite shell init script.

Does anyone have any idea why these perl programs won't work?

Forrest
--




Reply via email to