core.git: Branch 'feature/cib_contract57d' - 27 commits - avmedia/source configure.ac dbaccess/source download.lst drawinglayer/source embeddedobj/source external/curl external/liblangtag external/lib

2024-05-17 Thread Mike Kaganski (via logerrit)
Rebased ref, commits from common ancestor:
commit 5669f498e84622dd969bb7ee83583701087df82b
Author: Mike Kaganski 
AuthorDate: Sun Feb 25 08:48:08 2024 +0600
Commit: Thorsten Behrens 
CommitDate: Fri May 17 18:29:59 2024 +0200

Use SAL_WNODEPRECATED_DECLARATIONS_(PUSH|POP)

Change-Id: I2810d22e8f5e1c81647b9e9b15519de65939630a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163895
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 

diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx 
b/filter/source/xsltfilter/LibXSLTTransformer.cxx
index 2acc7dba07b5..14088a70ee2a 100644
--- a/filter/source/xsltfilter/LibXSLTTransformer.cxx
+++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx
@@ -478,21 +478,9 @@ namespace XSLT
 params = args;
 }
 
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
-#if defined(_MSC_VER)
-#pragma warning(push)
-#pragma warning(disable:4996)
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
 xmlSubstituteEntitiesDefault(0);
-#if defined(_MSC_VER)
-#pragma warning(pop)
-#endif
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_POP
 
 m_parameters.clear();
 for (int i = 0; i < params.getLength(); i++)
diff --git a/helpcompiler/source/HelpCompiler.cxx 
b/helpcompiler/source/HelpCompiler.cxx
index 98fd7f6eb55d..9cd0425c2e05 100644
--- a/helpcompiler/source/HelpCompiler.cxx
+++ b/helpcompiler/source/HelpCompiler.cxx
@@ -44,21 +44,9 @@ HelpCompiler::HelpCompiler(StreamTable _streamTable, 
const fs::path _input
 src(in_src), zipdir(in_zipdir), module(in_module), lang(in_lang), 
resCompactStylesheet(in_resCompactStylesheet),
 resEmbStylesheet(in_resEmbStylesheet), bExtensionMode( in_bExtensionMode )
 {
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
-#if defined(_MSC_VER)
-#pragma warning(push)
-#pragma warning(disable:4996)
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
 xmlKeepBlanksDefaultValue = 0;
-#if defined(_MSC_VER)
-#pragma warning(pop)
-#endif
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_POP
 char* os = getenv("OS");
 if (os)
 {
diff --git a/vcl/unx/generic/printer/cupsmgr.cxx 
b/vcl/unx/generic/printer/cupsmgr.cxx
index 3c910f3b39df..6651f23bdf68 100644
--- a/vcl/unx/generic/printer/cupsmgr.cxx
+++ b/vcl/unx/generic/printer/cupsmgr.cxx
@@ -82,14 +82,9 @@ struct GetPPDAttribs
 {
 // This CUPS method is not at all thread-safe we need
 // to dup the pointer to a static buffer it returns ASAP
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
 OString aResult = cupsGetPPD(m_aParameter.getStr());
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_POP
 MutexGuard aGuard( *m_pSyncMutex );
 m_aResult = aResult;
 m_aCondition.set();
@@ -222,10 +217,7 @@ void CUPSManager::runDests()
 
 // n#722902 - do a fast-failing check for cups working *at all* first
 http_t* p_http;
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
 if( (p_http=httpConnectEncrypt(
  cupsServer(),
  ippPort(),
@@ -242,9 +234,7 @@ void CUPSManager::runDests()
 
 httpClose(p_http);
 }
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_POP
 }
 
 void CUPSManager::initialize()
@@ -454,14 +444,9 @@ const PPDParser* CUPSManager::createCUPSParser( const 
OUString& rPrinter )
 rtl_TextEncoding aEncoding = osl_getThreadTextEncoding();
 OUString aFileName( OStringToOUString( aPPDFile, aEncoding 
) );
 // update the printer info with context information
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
 ppd_file_t* pPPD = ppdOpenFile( aPPDFile.getStr() );
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_POP
 if( pPPD )
 {
 // create the new parser
@@ -469,14 +454,9 @@ const PPDParser* CUPSManager::createCUPSParser( const 
OUString& rPrinter )
 pCUPSParser->m_aFile = rPrinter;
 pNewParser = pCUPSParser;
 
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
 /*int nConflicts =*/ cupsMarkOptions( pPPD, 
pDest->num_options, pDest->options );
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+SAL_WNODEPRECATED_DECLARATIONS_POP
  

core.git: Branch 'feature/cib_contract57d' - 27 commits - avmedia/source configure.ac dbaccess/source download.lst drawinglayer/source embeddedobj/source external/curl external/liblangtag external/lib

2024-05-17 Thread Tünde Tóth (via logerrit)
 avmedia/source/gstreamer/gstframegrabber.cxx   |8 +
 configure.ac   |4 
 dbaccess/source/core/dataaccess/ModelImpl.cxx  |3 
 download.lst   |   26 ++--
 drawinglayer/source/tools/primitive2dxmldump.cxx   |2 
 embeddedobj/source/commonembedding/persistence.cxx |   25 ++-
 external/curl/2b0994c29a721c91c57.patch|   48 +++
 external/curl/CVE-2023-38545_7.87.0.patch  |  134 +
 external/curl/UnpackedTarball_curl.mk  |2 
 external/liblangtag/UnpackedTarball_liblangtag.mk  |1 
 external/liblangtag/langtag-valencia.patch.0   |   29 
 external/libxml2/ExternalPackage_libxml2.mk|2 
 external/libxml2/ExternalProject_libxml2.mk|4 
 external/libxml2/UnpackedTarball_libxml2.mk|3 
 external/libxml2/libxml2-XMLCALL-redefine.patch.0  |   11 +
 external/libxml2/libxml2-global-symbols.patch  |   14 ++
 external/libxml2/libxml2-icu-sym.patch.0   |   37 +
 external/libxml2/libxml2-icu.patch.0   |2 
 external/nss/README|   26 +---
 external/redland/UnpackedTarball_raptor.mk |1 
 external/redland/raptor/raptor-libxml2-11.patch.1  |   15 ++
 filter/source/xsltfilter/LibXSLTTransformer.cxx|   18 ++
 helpcompiler/source/HelpCompiler.cxx   |   14 ++
 helpcompiler/source/HelpLinker.cxx |4 
 include/sfx2/docmacromode.hxx  |5 
 include/sfx2/objsh.hxx |6 
 include/sfx2/strings.hrc   |1 
 include/svx/unoshape.hxx   |6 
 include/tools/urlobj.hxx   |5 
 include/xmloff/xmltoken.hxx|2 
 reportdesign/source/core/sdr/ReportDrawPage.cxx|2 
 sax/source/fastparser/fastparser.cxx   |2 
 sc/source/core/data/global.cxx |7 -
 sc/source/core/tool/interpr7.cxx   |1 
 sc/source/filter/xml/XMLExportDataPilot.cxx|2 
 sc/source/filter/xml/XMLExportDatabaseRanges.cxx   |2 
 sc/source/filter/xml/xmlfilti.cxx  |4 
 scripting/source/pyprov/mailmerge.py   |   10 -
 sd/source/ui/app/sdmod1.cxx|   29 ++--
 sfx2/source/doc/docmacromode.cxx   |8 -
 sfx2/source/doc/iframe.cxx |5 
 sfx2/source/doc/objmisc.cxx|   35 +
 sfx2/source/doc/objxtor.cxx|1 
 sfx2/source/inc/objshimp.hxx   |3 
 solenv/flatpak-manifest.in |7 -
 svx/source/unodraw/shapeimpl.hxx   |7 -
 svx/source/unodraw/unomod.cxx  |6 
 svx/source/unodraw/unopage.cxx |   14 +-
 svx/source/unodraw/unoshap4.cxx|   38 +++--
 sw/source/filter/html/htmlplug.cxx |2 
 sw/source/filter/xml/xmltexti.cxx  |2 
 sw/source/uibase/wrtsh/wrtsh2.cxx  |   57 +++-
 tools/source/fsys/urlobj.cxx   |9 +
 unoxml/source/dom/attr.cxx |1 
 unoxml/source/dom/document.cxx |1 
 unoxml/source/dom/documentbuilder.cxx  |1 
 unoxml/source/dom/entity.cxx   |1 
 unoxml/source/xpath/xpathapi.cxx   |7 -
 xmloff/source/core/xmltoken.cxx|2 
 xmloff/source/draw/eventimp.cxx|3 
 xmloff/source/draw/sdpropls.cxx|2 
 xmloff/source/draw/ximpshap.cxx|6 
 xmloff/source/style/PageMasterStyleMap.cxx |4 
 xmloff/source/table/XMLTableExport.cxx |2 
 xmlsecurity/inc/xmlsec-wrapper.h   |1 
 xmlsecurity/inc/xmlsec/saxhelper.hxx   |1 
 xmlsecurity/source/xmlsec/saxhelper.cxx|   15 ++
 67 files changed, 575 insertions(+), 183 deletions(-)

New commits:
commit 11d06478fe45a94a815a317158d1a4abc2a2cefa
Author: Tünde Tóth 
AuthorDate: Thu Aug 1 15:26:55 2019 +0200
Commit: Thorsten Behrens 
CommitDate: Fri May 17 16:15:03 2024 +0200

tdf#125041 fix hyperlinks to IDN websites

Revert "tdf#86087 Open relative links in Writer"

This reverts commit 4b9e237850efe36f7e35d65e14d6953f1e1f3a45.

The reverted commit caused a regression in the handling of
internationalized domain names: these non-ASCII URLs were converted
to file URIs.

Change-Id: Ia481aa1199d20083b72f9f8571992e40b3fc2e77
Reviewed-on: https://gerrit.libreoffice.org/76804
Reviewed-by: László Németh 
Tested-by: László Németh 

diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx 
b/sw/source/uibase/wrtsh/wrtsh2.cxx
index a3d27216e490..255f3f451e7c