diff --git a/patches/msxml_normalize_line/0001-msxml-Support-ISAXXMLReader-putFeature-normalize-lin.patch b/patches/msxml_normalize_line/0001-msxml-Support-ISAXXMLReader-putFeature-normalize-lin.patch new file mode 100644 index 00000000..6508a7f7 --- /dev/null +++ b/patches/msxml_normalize_line/0001-msxml-Support-ISAXXMLReader-putFeature-normalize-lin.patch @@ -0,0 +1,46 @@ +From 9be306cd143e6bf5f300a321101fb713edb9155b Mon Sep 17 00:00:00 2001 +From: Alistair Leslie-Hughes +Date: Sat, 12 Jul 2025 15:20:04 +1000 +Subject: [PATCH] msxml: Support ISAXXMLReader::putFeature + normalize-line-breaks option + +Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36686 +--- + dlls/msxml3/saxreader.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c +index 71a7f334420..9650af38597 100644 +--- a/dlls/msxml3/saxreader.c ++++ b/dlls/msxml3/saxreader.c +@@ -60,7 +60,8 @@ typedef enum + SuppressValidationfatalError = 1 << 12, + UseInlineSchema = 1 << 13, + UseSchemaLocation = 1 << 14, +- LexicalHandlerParEntities = 1 << 15 ++ LexicalHandlerParEntities = 1 << 15, ++ NormalizeLineBreaks = 1 << 16, + } saxreader_feature; + + struct saxreader_feature_pair +@@ -78,6 +79,7 @@ static const struct saxreader_feature_pair saxreader_feature_map[] = { + { Namespaces, L"http://xml.org/sax/features/namespaces" }, + { ProhibitDTD, L"prohibit-dtd" }, + { SchemaValidation, L"schema-validation" }, ++ { NormalizeLineBreaks, L"normalize-line-breaks" }, + }; + + static saxreader_feature get_saxreader_feature(const WCHAR *name) +@@ -3159,7 +3161,8 @@ static HRESULT WINAPI isaxxmlreader_putFeature( + if (feature == LexicalHandlerParEntities || + feature == ProhibitDTD || + feature == ExternalGeneralEntities || +- feature == ExternalParameterEntities) ++ feature == ExternalParameterEntities || ++ feature == NormalizeLineBreaks) + { + FIXME("(%p)->(%s %x) stub\n", This, debugstr_w(feature_name), value); + return set_feature_value(This, feature, value); +-- +2.47.2 + diff --git a/patches/msxml_normalize_line/definition b/patches/msxml_normalize_line/definition new file mode 100644 index 00000000..c7308019 --- /dev/null +++ b/patches/msxml_normalize_line/definition @@ -0,0 +1,2 @@ +Fixes: [36686] msxml: Support ISAXXMLReader::putFeature normalize-line-breaks option +