Bug#889178: Should accept page ordering in argument to -P
tags 889178 upstream severity 889178 wishlist thanks On Sat 03 Feb 2018 at 14:52:41 +1300, martin f krafft wrote: > Package: cups-client > Version: 2.2.6-4 > Severity: minor > File: /usr/bin/lp > > The lp(1) manpage says that -P accepts a page-list. However, makes > no mention that this page list must be strictly increasing. While > "-P 2,4" works, "-P 4,2" yields > > lp: Bad page-ranges values 2-2. > > It would be great if it was actually possible to specify any > ordering in the argument to -P. If that's not possible, then the > manpage should probably be updated. >From rfc8011: 5.2.7. page-ranges (1setOf rangeOfInteger(1:MAX)) This RECOMMENDED attribute identifies the range(s) of Input Pages that the Printer uses for each Set to be printed prior to imposition of those pages onto Impressions. Nothing is printed for any pages identified that do not exist in the Set/Document(s). Ranges MUST be in ascending order (1-3, 5-7, 15-19, etc.) and MUST NOT overlap so that a non-spooling Printer can process the Job in a single pass. If the ranges are not ascending or are overlapping, the Printer MUST reject the request and return the 'client-error-bad-request' status-code. The example in lp(1) is correct. The wisdom of justifying the entry by reference to an RFC is questionable. However, upstream listens and generally responds: https://github.com/apple/cups/issues Regards, Brian.
Processed: Re: Bug#889178: Should accept page ordering in argument to -P
Processing commands for cont...@bugs.debian.org: > tags 889178 upstream Bug #889178 [cups-client] Should accept page ordering in argument to -P Added tag(s) upstream. > severity 889178 wishlist Bug #889178 [cups-client] Should accept page ordering in argument to -P Severity set to 'wishlist' from 'minor' > thanks Stopping processing here. Please contact me if you need assistance. -- 889178: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889178 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#889178: Should accept page ordering in argument to -P
Package: cups-client Version: 2.2.6-4 Severity: minor File: /usr/bin/lp The lp(1) manpage says that -P accepts a page-list. However, makes no mention that this page list must be strictly increasing. While "-P 2,4" works, "-P 4,2" yields lp: Bad page-ranges values 2-2. It would be great if it was actually possible to specify any ordering in the argument to -P. If that's not possible, then the manpage should probably be updated. -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages cups-client depends on: ii adduser3.116 ii cups-common2.2.6-4 ii libc6 2.26-6 ii libcups2 2.2.6-4 ii libcupsimage2 2.2.6-4 cups-client recommends no packages. Versions of packages cups-client suggests: ii cups 2.2.6-4 ii cups-bsd 2.2.6-4 ii smbclient 2:4.7.4+dfsg-1 ii xpp1.5-cvs20081009-3 -- no debconf information -- .''`. martin f. krafft@martinkrafft : :' : proud Debian developer `. `'` http://people.debian.org/~madduck `- Debian - when you have better things to do than fixing systems digital_signature_gpg.asc Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)