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.