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

mod_xml2enc: remove dependency on xmlstring header #393

Conversation

ttachi
Copy link

@ttachi ttachi commented Nov 17, 2023

Include of libxml/xmlstring.h was removed from libxml/encoding.h in libxml2 v2.12.0
GNOME/libxml2@7909ff0

@covener
Copy link
Member

covener commented Nov 20, 2023

I guess both casts are ugly, but should we be including libxml/parser.h here?

@ttachi
Copy link
Author

ttachi commented Nov 21, 2023

libxml/encoding.h is included in mod_xml2enc.c.
https://github.com/apache/httpd/blob/trunk/modules/filters/mod_xml2enc.c#L38

actually, libxml/encoding.h has no dependencies on libxml/xmlstring.h.
https://github.com/GNOME/libxml2/blob/v2.12.0/include/libxml/encoding.h

instead of adding more headers, eliminate reference to xmlChar defined in libxml/xmlstring.h to reduce unnecessary dependencies.
https://github.com/apache/httpd/blob/trunk/modules/filters/mod_xml2enc.c#L212

@covener
Copy link
Member

covener commented Nov 21, 2023

Thanks, I see now, the type has never been in the signature of xmlDetectCharEncoding

@asfgit asfgit closed this in 27a68e5 Nov 21, 2023
nono303 pushed a commit to nono303/win-build-scripts that referenced this pull request Dec 18, 2023
asfgit pushed a commit that referenced this pull request Jan 3, 2024
mod_xml2enc: remove dependency on xmlstring header

Submitted by: ttachi <tachihara hotmail.com>
Github: closes #393
Reviewed by: covener, minfrin, jorton


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1915066 13f79535-47bb-0310-9956-ffa450edef68
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Feb 6, 2024
See the pull apache/httpd#393.

Signed-off-by: INODE64 <web@inode64.com>
Closes: #35118
Signed-off-by: Sam James <sam@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants