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 Braaten <da...@multiactive.com> on 2001/02/05 20:47:13 UTC

Re: Error in Rev1.6 of xml-xalan/c/src/XalanDOM/XalanDOMString.cpp?

This patch from Frank fixes the problem I was having with Release builds
of Xalan that I was experiencing last week.

----- Original Message -----
From: "Frank Emser" <Fr...@nortel-dasa.de>
To: <xa...@xml.apache.org>
Cc: <Fr...@gmx.de>
Sent: Monday, February 05, 2001 09:22 AM
Subject: Error in Rev1.6 of xml-xalan/c/src/XalanDOM/XalanDOMString.cpp?


> I guess that there is an error in Rev1.6 of
xml-xalan/c/src/XalanDOM/XalanDOMString.cpp:
> I was not even able to run the Sample SimpleTransform because
> of error
> "Assertion failed: length (theFunction Name) != 0
> file XPath/XPathFunctionTable.cpp, line 199.
_snip_
>
> =====================================================================
>
> Changing into the code below worked fine for me:
> ======================================================================
> XalanDOMString::XalanDOMString(
> const char* theString,
> size_type theCount) :
> m_data()
> #if defined(XALAN_DOMSTRING_CACHE_SIZE)
> , m_size(0)
> #endif
> {
> assert(theString != 0);
>
> if (*theString != 0)
> {
>         if (theCount == size_type(npos)) {
>             TranscodeFromLocalCodePage(theString, m_data, true);
>         } else {
>             TranscodeFromLocalCodePage(theString, theCount, m_data, true);
>         }
>
>
> #if defined(XALAN_DOMSTRING_CACHE_SIZE)
> m_size = m_data.size() - 1;
> #endif
> }
>
> invariants();
> }
>