cups support apparently broken

Michael Stefaniuc mstefani at redhat.de
Tue Apr 30 11:08:27 CDT 2002


On Mon, Apr 29, 2002 at 02:53:32PM -0400, Michael Cardenas wrote:
> On Mon, Apr 29, 2002 at 10:09:19PM +0200, Marcus Meissner wrote:
> > > trying to do an
> > > 
> > > echo "print" | lpr -Peng
> > 
> > Actually WINE assumes that a CUPS printer can be sent jobs using
> > lpr -P<printername> on stdin.
> > 
> > If this is not the case, you will have to change dlls/gdi/printdrv.c 
> > and dlls/winspool/info.c.
> 
> Apparently, the correct command for cups is lp and -P needs to be
> replaced with -d
I don't know how the cups package is build on debian, but cups provides both
commands lpr and lp. And both commands work.

bye
	michael

> 
> so by changing 
> 
>     if (!strncmp("LPR:",pszOutput,4))
>           sprintf(psCmd,"|lpr -P%s",pszOutput+4);
> 
> to
> 
>     if (!strncmp("LPR:",pszOutput,4))
>           sprintf(psCmd,"|lp -d%s",pszOutput+4);
> 
> in
> 
> wine/dlls/gdi/printdrv.c
> 
> it now works, but only for CUPS printers. 
> 
> I'll send a patch that checks the registry for a description with CUPS
> in it and uses lp -d if appropriate.
> 
> thanks for the help. 
> 
> 

-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
System Administration           Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at redhat.com
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20020430/8eb32fb1/attachment.pgp


More information about the wine-devel mailing list