Bug 35937 - parsePrintcap in qprintdialog.cpp error
Summary: parsePrintcap in qprintdialog.cpp error
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: qt   
(Show other bugs)
Version: 7.1
Hardware: i386 Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Aaron Brown
: 31371 36841 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2001-04-14 19:40 UTC by Gene Czarcinski
Modified: 2007-04-18 16:32 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-04-14 21:53:00 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix for lp=/stuff; doesn't handle Include files yet. (863 bytes, patch)
2001-04-14 21:52 UTC, Bernhard Rosenkraenzer
no flags Details | Diff

Description Gene Czarcinski 2001-04-14 19:40:01 UTC
RedHat:  please mark this "non beta only" once seawolf is offical.

This was originally reported against kmail since that was the only
application that appears to use qt's print function.

The problem is that the "simplistic" parsing in the function parsePrintcap
in qprintdialog.cpp considers everything between the beginning of a printer
definition and a '|' character to be the "name" of a print queue, it has
problems with the /etc/printcap created by RedHat's new printconf package.
 A Unix printer queue is handled properly but not a JetDirect queue.  The
following definition DOES NOT work:


Everything starting with "lp:" and stopping at the '|' after "lp=" is
treated as the print queue "name".

Circumvention:  Define the print queue as a remote Unix Printer OR define
another Unix printer (e.g., lp1) pointing to for queue lp OR give
lp an alias (!).  All of these seem to work properly (at least for my kmail
test case).  Looking at the printcap man page, the use of '|' to indicate
piping the output seems to be proper.  However, it is still a problem with
the parsing of /etc/printcap.

Another thing I noticed about the parsePrintcap function is that it does
not seem to handle "include" processing so that if you had everything in an
included file it would not find any printers defined.

Comment 1 Gene Czarcinski 2001-04-14 19:44:42 UTC
*** Bug 31371 has been marked as a duplicate of this bug. ***

Comment 2 Bernhard Rosenkraenzer 2001-04-14 21:39:08 UTC
Qt is doing the right thing for "normal" printcaps... It just doesn't know 
about LPRng extensions. Fixing.

Comment 3 Bernhard Rosenkraenzer 2001-04-14 21:52:57 UTC
Created attachment 15366 [details]
Fix for lp=/stuff; doesn't handle Include files yet.

Comment 4 Bernhard Rosenkraenzer 2001-04-14 21:55:11 UTC
Fixed in qt-2.3.0-4.

Comment 5 Bernhard Rosenkraenzer 2001-04-20 22:12:27 UTC
*** Bug 36841 has been marked as a duplicate of this bug. ***

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