Skip to content

Validate .language subfield of IPP attributes#1654

Open
nmuggli wants to merge 2 commits into
OpenPrinting:2.4.xfrom
nmuggli:validate-language-2.x
Open

Validate .language subfield of IPP attributes#1654
nmuggli wants to merge 2 commits into
OpenPrinting:2.4.xfrom
nmuggli:validate-language-2.x

Conversation

@nmuggli

@nmuggli nmuggli commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

ippValidateAttribute will validate strings, but it doesn't validate the string.language subfield of IPP_TAG_TEXTLANG or IPP_TAG_NAMELANG. Add a helper method to validate these values using the same validation that is currently used for IPP_TAG_LANGUAGE.

Added some tests as well.

ippValidateAttribute will validate strings, but it doesn't validate the
string.language subfield of IPP_TAG_TEXTLANG or IPP_TAG_NAMELANG.  Add a
helper method to validate these values using the same validation that is
currently used for IPP_TAG_LANGUAGE.

Added some tests as well.
@nmuggli

nmuggli commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Analogous PR for master branch is #1653

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.

1 participant