]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters: In ieee1284NormalizeMakeAndModel() do not remove extra after ()
authorTill Kamppeter <till.kamppeter@gmail.com>
Thu, 13 Jan 2022 17:39:09 +0000 (14:39 -0300)
committerTill Kamppeter <till.kamppeter@gmail.com>
Thu, 13 Jan 2022 17:39:09 +0000 (14:39 -0300)
commitc71879afdbb37e5ef79e1187f2e5f30524302387
treed8ecd9d65ec8c60adc620121ffd355b25d5225cf
parent04830d152a2137cc5d4e309c5fe80c081193c847
libcupsfilters: In ieee1284NormalizeMakeAndModel() do not remove extra after ()

If a PPD's NickName has extra info in parentheses after the model name
we have thrown away any further text after the parentheses. As
PPD-retro-fitting Printer Applications add the PPD's language (for
example "(en)") to the end of the NickName and then call
ieee1284NormalizeMakeAndModel() to generate the unique driver name,
this language info extension gets thrown away and the unique driver
name identical for all language versions of the same printer's PPD,
making the entries clobbering each other leaving only the first in the
alphabet, which is often German ("de") and rarely English.

Now we do not remove any part of the input string's extra info to
remedy this problem.
cupsfilters/ieee1284.c