Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 51133 - lpr: textfiles will not print to a postscript printer due to bug in mf.cfg from printtool-gui
lpr: textfiles will not print to a postscript printer due to bug in mf.cfg fr...
Product: Red Hat Linux
Classification: Retired
Component: LPRng (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Crutcher Dunnavant
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2001-08-07 15:22 EDT by Maurik Holtrop
Modified: 2007-04-18 12:35 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-08-07 16:17:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Maurik Holtrop 2001-08-07 15:22:27 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2smp i686)

Description of problem:
when a postscript printer is set up using the printtool-gui, it will not
print a plain text file.
The file mf.cfg created by printtool-gui contains an incorrect line for the
TEXTfilter. Replacing this line with:
define(TEXTfilter, `filter enscript -G --header=|%m:%n|  ' )dnl
solves the problem nicely, but it gets overwritten next time printtool-gui
is used.
How do I fix this in printtool-gui?

How reproducible:

Steps to Reproduce:
1. Configure postscript printer using printtoo-gui
2. cat /proc/cpuinfo | lpr -P mypsprinter
3. No output appears.

Actual Results:  Nothing.

Expected Results:  A single page on the printer with my CPU info.

Additional info:

The /var/spool/lpd/mypsprinter/mf.cfg file contains an incorrect line
caused by printtool-gui.
Comment 1 Maurik Holtrop 2001-08-07 15:26:16 EDT
Err, that shoud be "printconf-gui" or "printtool", obviously "printtool-gui"
does not exist
Comment 2 Maurik Holtrop 2001-08-07 16:17:15 EDT
I traced the error to /usr/share/printconf/util/make_mfomatic_cfg.pl  line: 141

If I replace:
$text_filter = $foodata->{'ascii'} ? ($chardata->{'cmd'} || 'text "" \r\n\14 ')
: "pipe/postscript/ $enscript_cmd";
$text_filter = "pipe/postscript/ $enscript_cmd";

everything works.
Comment 3 Crutcher Dunnavant 2001-08-22 18:05:18 EDT
got it.

Note You need to log in before you can comment on or make changes to this bug.