From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021001 Description of problem: When trying to rebuild the Red Hat Linux discs, mk-images.i386 tries to run this line: pngtopnm $BOOTDISKDIR/syslinux-splash.png | ppmtolss16 \#000000=0 \#c4c7ce=7 \#c60000=2 \#ffffff=15 \#7790c2=9 > $BOOTDISKDIR/splash.lss and it gives this error: /usr/bin/ppmtolss16: Premature EOF at (301,225) of (640,300) Trying pngtopnm syslinux-splash.png|ppmtolss16 > temp.lss16 gives the same error, but this command works on Red Hat Linux 7.3. Version-Release number of selected component (if applicable): syslinux-1.75-3 anaconda*-8.0-4 How reproducible: Always Steps to Reproduce: 1. get syslinux-splash.png from disc 1 2. pngtopnm syslinux-splash.png|ppmtolss16 > /tmp/temp.lss16 Actual Results: /usr/bin/ppmtolss16: Premature EOF at (301,225) of (640,300) Expected Results: I should get a splash.lss file
I just tested: pngtopnm syslinux-splash.png | LANG=C ppmtolss16 > /tmp/temp.lss16, and it worked. For some reason, perl has problems sometimes when not using LANG=C. I would still like to know if there is a better fix.
This is also true for /usr/bin/lss16toppm. Verified with the boot floppy lss file from 8.0. I haven't looked closely at the scripts, but something in there isn't UTF-8 safe. lss16toppm < splash.lss > /tmp/splash.ppm (FAILS in an ugly way) LANG=C lss16toppm < splash.lss > /tmp/splash.ppm (WORKS) Setting LANG=C works as a workaround. Tested with syslinux-1.75-3.
syslinux-2.03 fixed this problem