* Regressions: - extensions: Readd call to xmlCheckFilename with older libxml2 * Improvments: - utils: Don't use deprecated xmlCharEncodingHandler member - transform: Handle filesystem paths after libxml2 changes - locale: Work around issue with FreeBSD's strxfrm_l * Build systems: - cmake: Add LIBXSLT_WITH_PROGRAMS option (Don Olmstead) - cmake: Fix HAVE_GCRYPT check - Update to 1.1.41: * Removals: - autotools: Stop installing libxslt.m4 - autotools: Remove RPM build * Improvements: - libxslt: Set _FILE_OFFSET_BITS to 64 - xsltproc: Remove unneeded includes - include: Don't define ATTRIBUTE_UNUSED in public header - xsltproc: Make "-" read from stdin * Build systems: - cmake: Adjust paths for UNIX or UNIX-like target systems (Daniel E) * Tests: - cmake: Link testplugin with libxml2 - tests: Link testplugin with libxml2 - tests: Fix expected error after libxml2 change - runtest: Switch to xmlFormatError - fuzz: Avoid accessing internal struct members - Update to 1.1.40: * Removals: - xsltproc: remove maxparserdepth option (Mike Dalessio) OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxslt?expand=0&rev=107
28 lines
895 B
Diff
28 lines
895 B
Diff
From 02a57a01c603462ce8cc65fc64076a107ccf758e Mon Sep 17 00:00:00 2001
|
|
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
|
Date: Fri, 1 Dec 2023 21:05:19 +0100
|
|
Subject: [PATCH] tests: Fix build with older libxml2
|
|
|
|
Fixes #99.
|
|
---
|
|
tests/runtest.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/runtest.c b/tests/runtest.c
|
|
index ea08824..f61c66a 100644
|
|
--- a/tests/runtest.c
|
|
+++ b/tests/runtest.c
|
|
@@ -456,7 +456,8 @@ initializeLibxml2(void) {
|
|
xmlSetExternalEntityLoader(xmlNoNetExternalEntityLoader);
|
|
xmlSetGenericErrorFunc(NULL, testErrorHandler);
|
|
xsltSetGenericErrorFunc(NULL, testErrorHandler);
|
|
- xmlSetStructuredErrorFunc(NULL, testStructuredErrorHandler);
|
|
+ xmlSetStructuredErrorFunc(NULL,
|
|
+ (xmlStructuredErrorFunc) testStructuredErrorHandler);
|
|
exsltRegisterAll();
|
|
xsltRegisterTestModule();
|
|
xsltMaxDepth = 200;
|
|
--
|
|
2.45.1
|
|
|