patch for cups printers

Huw D M Davies h.davies1 at physics.ox.ac.uk
Mon Apr 29 18:35:37 CDT 2002


On Mon, Apr 29, 2002 at 03:39:46PM -0400, Michael Cardenas wrote:
> Changelog:
> This patch fixes printing on cups systems that don't have complete lpr
> implementations. It won't affect non cups systems. 
> 
> It changes the device listed in the registry for cups printers to CUPS:
> instead of LPR: and uses "lp -d" for a cups printer instead of "lpr -P". 
> 
> +    if (!strncmp("CUPS:",pszOutput,4))
> +      sprintf(psCmd,"|lp -d%s",pszOutput+4);

s/4/5/ ?

By the way the cups user manual seems to imply that it supplies both
lp and lpr commands.  Of course we should probably send jobs to cups
via the cupsPrintFile() api but I guess that can wait.

Huw.



More information about the wine-devel mailing list