Derek,
thanks for the report. However, I couldn't reproduce that bug (under NT;
I didn't test it in linux yet). Would you send the whole test data?
Also, are you using v0.44? Thank you,
Tom
"Sayeau, Derek" wrote:
>
> Here's a bug and possible fix, by the way, I'm very impressed with the last
> few version of sablotron, and look forward to the xsl:sort implementation,
> great work!
>
> Description:
> Passing an empty string to translate causes an assert if debug symbols are
> included.
> In release execution continues, but the assert was probably put there for a
> good reason:)
>
> Example:
> translate( '', 'x', 'y') will cause the assert() on line 290 in datastr.cpp.
>
> Possible Fix:
> It appears DStr is not being initialized in the default constructor, to fix
> this
> I added the lines below to the default constructor...
>
> returnMemory(text_);
> operator+=("");
>
> -derek