File koffice-xsltproc-nocdata.patch of Package koffice
diff -Naru koffice-1.6.3_orig/filters/xsltfilter/export/xsltproc.cc koffice-1.6.3/filters/xsltfilter/export/xsltproc.cc
--- koffice-1.6.3_orig/filters/xsltfilter/export/xsltproc.cc 2007-05-31 06:39:33.000000000 +0900
+++ koffice-1.6.3/filters/xsltfilter/export/xsltproc.cc 2025-07-01 10:42:05.554845367 +0900
@@ -287,12 +287,11 @@
* disable CDATA from being built in the document tree
*/
xmlDefaultSAXHandlerInit();
- xmlDefaultSAXHandler.cdataBlock = NULL;
if ((cur != NULL) && (cur->errors == 0))
{
doc = NULL;
- doc = xmlParseFile(_fileIn);
+ doc = xmlReadFile(_fileIn, NULL, XML_PARSE_NOCDATA);
if (doc == NULL)
fprintf(stderr, "unable to parse %s\n", _fileIn.data());
else
diff -Naru koffice-1.6.3_orig/filters/xsltfilter/import/xsltproc.cc koffice-1.6.3/filters/xsltfilter/import/xsltproc.cc
--- koffice-1.6.3_orig/filters/xsltfilter/import/xsltproc.cc 2007-05-31 06:39:34.000000000 +0900
+++ koffice-1.6.3/filters/xsltfilter/import/xsltproc.cc 2025-07-01 10:43:13.939147520 +0900
@@ -287,12 +287,11 @@
* disable CDATA from being built in the document tree
*/
xmlDefaultSAXHandlerInit();
- xmlDefaultSAXHandler.cdataBlock = NULL;
if ((cur != NULL) && (cur->errors == 0))
{
doc = NULL;
- doc = xmlParseFile(_fileIn);
+ doc = xmlReadFile(_fileIn, NULL, XML_PARSE_NOCDATA);
if (doc == NULL)
fprintf(stderr, "unable to parse %s\n", _fileIn.data());
else