diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/xalan-c/1.11.0_pre797991-bugfixes.patch |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/xalan-c/1.11.0_pre797991-bugfixes.patch')
-rw-r--r-- | community/xalan-c/1.11.0_pre797991-bugfixes.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/xalan-c/1.11.0_pre797991-bugfixes.patch b/community/xalan-c/1.11.0_pre797991-bugfixes.patch new file mode 100644 index 000000000..d86f1bd45 --- /dev/null +++ b/community/xalan-c/1.11.0_pre797991-bugfixes.patch @@ -0,0 +1,50 @@ +diff -Naur xml-xalan.orig/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp xml-xalan/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp +--- xml-xalan.orig/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp 2009-07-27 00:23:08.507787691 +0200 ++++ xml-xalan/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp 2009-07-27 00:53:50.781756249 +0200 +@@ -28,7 +28,7 @@ + #include <xalanc/PlatformSupport/DOMStringHelper.hpp> + + #include <cstring> +- ++#include <cstdio> + #include <cerrno> + + XALAN_CPP_NAMESPACE_BEGIN +@@ -44,7 +44,7 @@ + + XalanNLSMessageLoader::~XalanNLSMessageLoader() + { +- if ((int)m_catalogHandle != -1) ++ if ((long)m_catalogHandle != -1) + { + catclose(m_catalogHandle); + } +@@ -77,7 +77,7 @@ + */ + m_catalogHandle = catopen(fileName, 0); + +- if (reinterpret_cast<int>(m_catalogHandle) == -1) ++ if (reinterpret_cast<long>(m_catalogHandle) == -1) + { + // Probably have to call panic here + // the user will get an error with retrieving messages +@@ -87,8 +87,8 @@ + + bool + XalanNLSMessageLoader::loadMsg( +- XalanMessages::Codes msgToLoad +- XalanDOMChar* toFill ++ XalanMessages::Codes msgToLoad, ++ XalanDOMChar* toFill, + XalanSize_t maxChars) + { + +@@ -99,7 +99,7 @@ + return bRetValue; + } + +- if (static_cast<int>(m_catalogHandle) == -1) ++ if (reinterpret_cast<long>(m_catalogHandle) == -1) + { + // for transcoding to Unicode + const XalanDOMString errorMsg("Message can't be retrieved: the message catalog is not open.", m_memoryManager ); |