#604961 enscript fails if the option ' -P printer ' is used

Package:
enscript
Source:
enscript
Description:
converts text to Postscript, HTML or RTF with syntax highlighting
Submitter:
marcello galli
Date:
2010-11-25 19:09:04 UTC
Severity:
normal
#604961#5
Date:
2010-11-25 18:04:31 UTC
From:
To:
The command:
enscript -P printername file.txt
fails with the message:
lp: Bad page-ranges values 0-0.
It seems that the option '-P printer'  is passed to the spooler command, which
is 'lp'.
the spooler command has a flag -P pages ,  and is confused
A workaround is to change the spooler command in the configuration file
/etc/enscript.cfg with:
Spooler: lpr
The lpr command has the option: -P printername