Package: enscript Version: 1.6.5.2-1 Severity: normal Tags: patch 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
-- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/dash Versions of packages enscript depends on: ii dpkg 1.15.8.5 Debian package management system ii install-info 4.13a.dfsg.1-6 Manage installed documentation in ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib ii libpaper1 1.1.24 library for handling paper charact enscript recommends no packages. Versions of packages enscript suggests: ii cups-bsd [lpr] 1.4.4-7 Common UNIX Printing System(tm) - ii evince [postscript-view 2.30.3-1 Document (postscript, pdf) viewer ii ghostscript [postscript 8.71~dfsg2-6 The GPL Ghostscript PostScript/PDF ii gv [postscript-viewer] 1:3.7.1-1 PostScript and PDF viewer for X ii kghostview [postscript- 4:3.5.9-3+lenny3 PostScript viewer for KDE ii okular [postscript-view 4:4.4.5-2 universal document viewer -- Configuration Files: /etc/enscript.cfg changed: AcceptCompositeCharacters: 0 AFMPath: /usr/share/enscript/afm:/usr/local/lib/ps:/usr/lib/ps AppendCtrlD: 0 Clean7Bit: 1 DefaultEncoding: latin1 DefaultFancyHeader: enscript DefaultOutputMethod: printer EscapeChar: 0 FormFeedType: column GeneratePageSize: 1 HighlightBarGray: .97 MarkWrappedLines: none Media: Letter 612 792 18 36 594 756 Media: Legal 612 1008 18 36 594 972 Media: Executive 522 756 18 36 504 684 Media: Tabloid 792 1224 18 36 774 1188 Media: A3 842 1191 18 36 824 1155 Media: A4 595 842 18 36 577 806 Media: A5 421 595 18 36 403 559 Media: B5 516 729 18 36 498 693 Media: EnvISOB5 499 709 18 36 463 673 Media: Env10 297 684 18 36 279 648 Media: EnvC5 459 649 18 36 441 613 Media: EnvDL 312 624 18 36 294 588 Media: EnvMonarch 279 540 18 36 261 504 Media: A4dj 595 842 18 50 577 806 Media: Letterdj 612 792 18 40 594 756 NoJobHeaderSwitch: -h NonPrintableFormat: octal OutputFirstLine: %!PS-Adobe-3.0 PageLabelFormat: short PagePrefeed: 0 PostScriptLevel: 2 QueueParam: -P Spooler: lpr StatesBinary: /usr/bin/states StatesColor: 0 StatesConfigFile: /usr/share/enscript/hl/enscript.st StatesHighlightStyle: emacs UnderlayFont: Times-Roman200 UnderlayGray: .8 UnderlayStyle: outline -- no debconf information
# # GNU Enscript configuration file. # Copyright (c) 1995-1998 Markku Rossi. # # Author: Markku Rossi <[email protected]> # # # # This file is part of GNU Enscript. # # Enscript is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Enscript is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Enscript. If not, see <http://www.gnu.org/licenses/>. # # Do we accept PostScript font's composite characters? As a default, # this is false because I think this is GhostScript dependant. AcceptCompositeCharacters: 0 # Lookup path for the AFM files. AFMPath: /usr/share/enscript/afm:/usr/local/lib/ps:/usr/lib/ps # Append ^D character to the end of the output. Some printers like HP # LaserJet 5 require this but the default is `false'. AppendCtrlD: 0 # How characters greater than 127 are printed: # 1 generate clean 7-bit code; print characters greater than 127 # in the backslash-octal notation `\xxx' (default) # 0 generate 8-bit code Clean7Bit: 1 # Default input encoding. DefaultEncoding: latin1 # Default fancy header. DefaultFancyHeader: enscript # Default output media. # DefaultMedia: A4 # Where output goes as a default: `printer' or `stdout' DefaultOutputMethod: printer # Include following font files to all PostScript outputs. # # DownloadFont: FooFont1 # DownloadFont: FooFont2 # The escape character for special escapes. EscapeChar: 0 # What to do when a formfeed character is encountered from input: # column move to the beginning of the next column # page move to the beginning of the next page FormFeedType: column # Specify whether the PageSize page device option is generated to the # output. GeneratePageSize: 1 # The gray level which is used to print highlight bars. HighlightBarGray: .97 # How high highlight bars are in lines. The default is 0 so no # highlight bars are printed. # HighlightBars: 2 # Library path. Let's use built-in default. # LibraryPath: # How wrapped lines are marked in printout. Possible values are: `none', # `plus', `box' and `arrow'. As a default, we do not mark them. MarkWrappedLines: none # Media definitions: # name width height llx lly urx ury Media: Letter 612 792 18 36 594 756 Media: Legal 612 1008 18 36 594 972 Media: Executive 522 756 18 36 504 684 Media: Tabloid 792 1224 18 36 774 1188 Media: A3 842 1191 18 36 824 1155 Media: A4 595 842 18 36 577 806 Media: A5 421 595 18 36 403 559 Media: B5 516 729 18 36 498 693 Media: EnvISOB5 499 709 18 36 463 673 Media: Env10 297 684 18 36 279 648 Media: EnvC5 459 649 18 36 441 613 Media: EnvDL 312 624 18 36 294 588 Media: EnvMonarch 279 540 18 36 261 504 # HP DeskJet media (DeskJet can't print on the bottom 1/2" of the paper). Media: A4dj 595 842 18 50 577 806 Media: Letterdj 612 792 18 40 594 756 # Spooler option to suppress the job header. NoJobHeaderSwitch: -h # How non-printable characters are printed: `caret', `octal', # `questionmark' or `space'. NonPrintableFormat: octal # PostScript output's first line. OutputFirstLine: %!PS-Adobe-3.0 # Default page label format: `short' or `long'. PageLabelFormat: short # Enable / disable page prefeed. PagePrefeed: 0 # The PostScript language level that enscript should use. PostScriptLevel: 2 # Printer name to spool to. As a default we want to use system's # default printer. # Printer: ps # The spooler command switch to select the printer queue. This option # can also be used to pass other flags to the spooler command but they # must be given bofore the queue switch. QueueParam: -P # Pass following Page Device options to the generated output. # # Duplex printing. # SetPageDevice: Duplex:true # Printer spooler command name. #Spooler: lp Spooler: lpr # An absolute path to the states program. StatesBinary: /usr/bin/states # Create color outputs with States? StatesColor: 0 # The name of the States configuration file. StatesConfigFile: /usr/share/enscript/hl/enscript.st # States' default highlight style. StatesHighlightStyle: emacs # Path for the States program. # StatesPath: /usr/share/enscript/hl # Pass following statusdict options to the generated output. # # Use always paper tray 1. # StatusDict: setpapertray:1 # Format string for table-of-contents entries. # # TOCFormat: $3v $-40N $3% pages $4L lines $E $C # As a default, print this underlay text to all document. # Underlay: mtr's printout # Underlay text angle. # UnderlayAngle: 45 # Select underlay font. UnderlayFont: Times-Roman200 # Select underlay gray. UnderlayGray: .8 # Underlay text starting position. # UnderlayPosition: +0-0 # Underlay style: `outline' or `filled' UnderlayStyle: outline # EOF
# # GNU Enscript configuration file. # Copyright (c) 1995-1998 Markku Rossi. # # Author: Markku Rossi <[email protected]> # # # # This file is part of GNU Enscript. # # Enscript is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Enscript is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Enscript. If not, see <http://www.gnu.org/licenses/>. # # Do we accept PostScript font's composite characters? As a default, # this is false because I think this is GhostScript dependant. AcceptCompositeCharacters: 0 # Lookup path for the AFM files. AFMPath: /usr/share/enscript/afm:/usr/local/lib/ps:/usr/lib/ps # Append ^D character to the end of the output. Some printers like HP # LaserJet 5 require this but the default is `false'. AppendCtrlD: 0 # How characters greater than 127 are printed: # 1 generate clean 7-bit code; print characters greater than 127 # in the backslash-octal notation `\xxx' (default) # 0 generate 8-bit code Clean7Bit: 1 # Default input encoding. DefaultEncoding: latin1 # Default fancy header. DefaultFancyHeader: enscript # Default output media. # DefaultMedia: A4 # Where output goes as a default: `printer' or `stdout' DefaultOutputMethod: printer # Include following font files to all PostScript outputs. # # DownloadFont: FooFont1 # DownloadFont: FooFont2 # The escape character for special escapes. EscapeChar: 0 # What to do when a formfeed character is encountered from input: # column move to the beginning of the next column # page move to the beginning of the next page FormFeedType: column # Specify whether the PageSize page device option is generated to the # output. GeneratePageSize: 1 # The gray level which is used to print highlight bars. HighlightBarGray: .97 # How high highlight bars are in lines. The default is 0 so no # highlight bars are printed. # HighlightBars: 2 # Library path. Let's use built-in default. # LibraryPath: # How wrapped lines are marked in printout. Possible values are: `none', # `plus', `box' and `arrow'. As a default, we do not mark them. MarkWrappedLines: none # Media definitions: # name width height llx lly urx ury Media: Letter 612 792 18 36 594 756 Media: Legal 612 1008 18 36 594 972 Media: Executive 522 756 18 36 504 684 Media: Tabloid 792 1224 18 36 774 1188 Media: A3 842 1191 18 36 824 1155 Media: A4 595 842 18 36 577 806 Media: A5 421 595 18 36 403 559 Media: B5 516 729 18 36 498 693 Media: EnvISOB5 499 709 18 36 463 673 Media: Env10 297 684 18 36 279 648 Media: EnvC5 459 649 18 36 441 613 Media: EnvDL 312 624 18 36 294 588 Media: EnvMonarch 279 540 18 36 261 504 # HP DeskJet media (DeskJet can't print on the bottom 1/2" of the paper). Media: A4dj 595 842 18 50 577 806 Media: Letterdj 612 792 18 40 594 756 # Spooler option to suppress the job header. NoJobHeaderSwitch: -h # How non-printable characters are printed: `caret', `octal', # `questionmark' or `space'. NonPrintableFormat: octal # PostScript output's first line. OutputFirstLine: %!PS-Adobe-3.0 # Default page label format: `short' or `long'. PageLabelFormat: short # Enable / disable page prefeed. PagePrefeed: 0 # The PostScript language level that enscript should use. PostScriptLevel: 2 # Printer name to spool to. As a default we want to use system's # default printer. # Printer: ps # The spooler command switch to select the printer queue. This option # can also be used to pass other flags to the spooler command but they # must be given bofore the queue switch. QueueParam: -P # Pass following Page Device options to the generated output. # # Duplex printing. # SetPageDevice: Duplex:true # Printer spooler command name. #Spooler: lp Spooler: lpr # An absolute path to the states program. StatesBinary: /usr/bin/states # Create color outputs with States? StatesColor: 0 # The name of the States configuration file. StatesConfigFile: /usr/share/enscript/hl/enscript.st # States' default highlight style. StatesHighlightStyle: emacs # Path for the States program. # StatesPath: /usr/share/enscript/hl # Pass following statusdict options to the generated output. # # Use always paper tray 1. # StatusDict: setpapertray:1 # Format string for table-of-contents entries. # # TOCFormat: $3v $-40N $3% pages $4L lines $E $C # As a default, print this underlay text to all document. # Underlay: mtr's printout # Underlay text angle. # UnderlayAngle: 45 # Select underlay font. UnderlayFont: Times-Roman200 # Select underlay gray. UnderlayGray: .8 # Underlay text starting position. # UnderlayPosition: +0-0 # Underlay style: `outline' or `filled' UnderlayStyle: outline # EOF

