You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "David Bertoni (JIRA)" <xa...@xml.apache.org> on 2005/09/30 07:53:47 UTC
[jira] Resolved: (XALANC-564) wrong assertion check in XalanEXSLTFunctionDecodeURI::execute (XalanEXSLTString.cpp)
[ http://issues.apache.org/jira/browse/XALANC-564?page=all ]
David Bertoni resolved XALANC-564:
----------------------------------
Resolution: Duplicate
> wrong assertion check in XalanEXSLTFunctionDecodeURI::execute (XalanEXSLTString.cpp)
> ------------------------------------------------------------------------------------
>
> Key: XALANC-564
> URL: http://issues.apache.org/jira/browse/XALANC-564
> Project: XalanC
> Type: Bug
> Components: XalanC
> Versions: 1.8, 1.9
> Environment: ALL
> Reporter: Henri-Bastien Lamontagne
> Priority: Minor
>
> There is a wrong assertion check in the function XalanEXSLTFunctionDecodeURI::execute in the file XalanEXSLTString.cpp.
> the current assertion is:
> assert(args[0].null() == false &&
> (theSize == 2 || args[1].null() == false));
> The resulting behevior is that with only one argument the assertion should always fail because (theSize ==2 will be false and args[1].null() == false should be false too.
> The solution is to replace it with this:
> assert(args[0].null() == false &&
> (theSize == 1 || args[1].null() == false));
> There is a simple workaround for though will its being fixed though. If you supply 2 arguments and specify UTF-8 as the second argument you will get the exact same behavior without assertion failure.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
Compile errors on SFU
Posted by Ian Warner <iw...@openfox.com>.
Hi,
I am getting the following errors compiling Xalan on Windows SFU using gcc
3.3
Any assistance would be greatly apprectiated - thanks
g++ -O -DNDEBUG -fno-elide-constructors -DINTERIX -D_ALL_SOURCE -D_REENT
RANT -I/usr/local/include -DXALAN_INMEM_MS
G_LOADER -c -I/AL3/xalan1_9/xml-xalan/c/src -I/AL3/xalan1_9/xml-xalan/c/incl
ude -I../../nls/include -I/AL3/xerces-c-src_
2_6_0/src/ -I/AL3/xerces-c-src_2_6_0/include/xercesc -I/AL3/xerces-c-src_2_6
_0/include/ -o ../../obj/process.o /AL3/xal
an1_9/xml-xalan/c/src/xalanc/TestXSLT/process.cpp
/AL3/xalan1_9/xml-xalan/c/src/xalanc/TestXSLT/process.cpp: In function `
xalanc_1_9::FormatterListener* createFormatter(int, bool, bool, bool,
bool,
xalanc_1_9::PrintWriter&, int, const xalanc_1_9::XalanDOMString&, const
xalanc_1_9::StylesheetRoot*, xalanc_1_9::XercesParserLiaison&,
xalanc_1_9::XalanSourceTreeParserLiaison&, const
xalanc_1_9::PrefixResolver&, const xalanc_1_9::XalanDocument*&)':
/AL3/xalan1_9/xml-xalan/c/src/xalanc/TestXSLT/process.cpp:631: error: no
matching function for call to
`xalanc_1_9::FormatterToText::FormatterToText(
xercesc_2_6::MemoryManager&, xalanc_1_9::PrintWriter&, const
xalanc_1_9::XalanDOMString&)'
/AL3/xalan1_9/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:222:
error: candidates
are: xalanc_1_9::FormatterToText::FormatterToText(const
xalanc_1_9::FormatterToText&)
/AL3/xalan1_9/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:81:
error:
xalanc_1_9::FormatterToText::FormatterToText(xalanc_1_9::Writer&, const
xalanc_1_9::XalanDOMString&, bool = true, bool = true,
xalanc_1_9::MemoryManagerType& =
xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
/AL3/xalan1_9/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:66:
error:
xalanc_1_9::FormatterToText::FormatterToText(xalanc_1_9::Writer&, bool =
true, bool = true, xalanc_1_9::MemoryManagerType& =
xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
/AL3/xalan1_9/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:53:
error:
xalanc_1_9::FormatterToText::FormatterToText(xalanc_1_9::MemoryManagerType&
= xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
/AL3/xalan1_9/xml-xalan/c/src/xalanc/TestXSLT/process.cpp:666: error: no
matching function for call to
`xalanc_1_9::FormatterToHTML::FormatterToHTML(
xercesc_2_6::MemoryManager&, xalanc_1_9::PrintWriter&, const
xalanc_1_9::XalanDOMString&, xalanc_1_9::XalanDOMString&,
xalanc_1_9::XalanDOMString&, xalanc_1_9::XalanDOMString&, bool&, int&)'
/AL3/xalan1_9/xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.hpp:51:
error: candidates
are: xalanc_1_9::FormatterToHTML::FormatterToHTML(const
xalanc_1_9::FormatterToHTML&)
/AL3/xalan1_9/xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.hpp:85:
error:
xalanc_1_9::FormatterToHTML::FormatterToHTML(xalanc_1_9::Writer&, const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), bool =
true, int = eDefaultIndentAmount, bool = true, bool = false,
xalanc_1_9::MemoryManagerType& =
xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
gmake[1]: *** [../../obj/process.o] Error 1
gmake[1]: Leaving directory `/AL3/xalan1_9/xml-xalan/c/src/xalanc'
gmake: *** [all] Error 2
fox-on-nodea%
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org