From b13ebb5b771e4e88ec5d11c48cc9dd7ef07cf1b3 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Tue, 6 Jan 2026 09:57:51 +0300 Subject: [PATCH] GCC 15 support Taken from fix in Debian by William Blough https://sources.debian.org/patches/xalan/1.12-12/gcc_15_fixes.patch/ https://salsa.debian.org/bblough/xalan/-/blob/48556a3b111c61db706c88ac3ab5d13afb17897e/debian/patches/gcc_15_fixes.patch --- src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp b/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp index 8741cea49..def1d5d8e 100644 --- a/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp +++ b/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp @@ -320,13 +320,13 @@ class XalanOtherEncodingWriter : public XalanFormatterWriter { XalanUnicodeChar value = decodeUTF16SurrogatePair(ch, theChars[i+1], getMemoryManager()); - if (this->m_isPresentable(value)) + if (m_predicate(value)) { write(value); } else { - this->writeNumberedEntityReference(value); + writeNumericCharacterReference(value); } ++i;