Felix Klee <felix.klee @ inka.de> writes:
>If I try to print plain text files using "lpr plain.txt"
>the printer only outputs an empty page (There are *no*
>special characters/control sequences in the file).
>Printing postscript files, dvi files or man pages
>(man pages seem to include special characters) works fine.
We had a similar symptom on our system. It turned out that it would
print some files and not others because some had a CR at the end and
some did not. See my earlier message to hurricane-list, below.
I hope this helps. Good luck!
-- Walter
> On our RedHat 5.0 P-133 system, the standard printtool lpr filter issues
> a segmentation violation and dumps core if the input file does not end
> in a newline and the printcap is set to add carriage-returns to newlines
> (CRLFTRANS=1).
>
> Breaking down the print sequence reveals that
> /usr/lib/rhs/rhs-printfilters/asc-to-printer.fpi contains the
> line
>
> sed -e 's/$/'`echo -ne '\r'`'/g'
>
> which adds the carriage returns. This segfaults if there is NO newline
> at the end of the file. On our machine, the simple test:
>
> echo -ne hello | sed -e 's/$/'`echo -ne '\r'`'/g'
>
> will segfault, too.
>
> As a result of the segfault, the printout may be truncated or not be
> printed at all. We found that very often the automatically-added
> formfeed following the attempted file is the only thing that prints!
>
> Replacing the "sed" line with a short C program to read each line and
> add CR works around the problem.
>
> Our system: RedHat 5.0 with errata. Versions: sed-2.05-9,
> kernel-2.0.32-2, glibc-2.0.5c-12, printtool-3.27-1.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.