tags 949315 upstream forwarded 949315 https://github.com/OpenPrinting/cups-filters/issues/201 thanks
On Sun 19 Jan 2020 at 20:10:17 +0100, Martin Mares wrote: > Package: cups-filters > Version: 1.21.6-5 > Severity: important > > When I use "driverless" to generate a PPD for my Xerox B215 printer, > I get definition of InputSlot which does not work. > > In particular, the printer reports that it supports media source "tray-1". > This is translated to "Tray-1" by driverless, so the PPD contains: > > *InputSlot Tray-1/Tray 1: "" > > When I submit a print job, CUPS's IPP backend translates this to IPP > media source "tray--1", which is later rejected by the printer (the printer > replies by a malformed IPP message, but that's another story). > > The problem lies in the mismatch between name mangling rules in > cups-filters-1.21.6/cupsfilters/ppdgenerator.c (the pwg_ppdize_name function) > and > cups-2.2.10/cups/ppd-cache.c (the pwg_unppdize_name function). It is hard > to tell which one is wrong as the name mangling rules seem arbitrary. However, > at least one of them needs fixing. > > I checked cups-filters 1.26.2 and CUPS 2.3.1 and the name mangling functions > stay the same, so the problem is probably still present. Thank you for your report, Martin. I have forwarded it upstream, so please monitor its progress there. I will be unable to add anything useful to any conversation. Regards, Brian.