Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppd/ppd-ipp.c: Use make when constructing printer-make-model attr #21

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

zdohnal
Copy link
Member

@zdohnal zdohnal commented May 26, 2023

We used only PPD Nickname which does not contain manufacturer in some drivers (like Utax) when constructing printer-make-and-model IPP attribute, and then used the attribute when matching with strings representing manufacturers in filter functions.

This caused internal hacks for specific printer manufacturers weren't applied, causing breakage during printing.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2192912 .

We used only PPD Nickname which does not contain manufacturer in some
drivers (like Utax) when constructing printer-make-and-model IPP
attribute, and then used the attribute when matching with strings
representing manufacturers in filter functions.

This caused internal hacks for specific printer manufacturers weren't
applied, causing breakage during printing.
@zdohnal zdohnal requested a review from tillkamppeter August 4, 2023 09:51
@zdohnal
Copy link
Member Author

zdohnal commented Aug 4, 2023

@tillkamppeter ping

@tillkamppeter tillkamppeter merged commit 6bc2deb into OpenPrinting:master Sep 21, 2023
tillkamppeter added a commit that referenced this pull request Sep 21, 2023
The PPD's NickName sometimes contains manufacturer and model,
sometimes only the model, not the manufacturer. And manufacturer names
can be completely missing or messy.

By using cfIEEE1284NormalizeMakeModel() we clean this up and have
clear manufacturer names, for better answers print clients and correct
application of quirk rules, especially by the ppdFilterPDFToPS()
filter function.

Improved solution for Pull Request #21.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants