Bug#470823: libsaxonb-java: fn:replace() does not work as expected
Michael Koch
konqueror at gmx.de
Sat Mar 22 12:41:43 UTC 2008
reassign 470823 gcj-4.3 4.3.0-1
notfound 470823 9.0-3
thanks
On Thu, Mar 13, 2008 at 08:53:28PM +0100, Jakub Wilk wrote:
> Package: libsaxonb-java
> Version: 9.0-3
> Severity: normal
>
> replace("abracadabra", "bra", "*") returns "abracada*", but according to
> [1] it should return "a*cada*":
>
> $ cat buggy.xsl
> <xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
> <xsl:output method='text'/>
> <xsl:template match='/'>
> <xsl:value-of select='replace("abracadabra", "bra", "*")'/>
> </xsl:template>
> </xsl:stylesheet>
>
> $ cat index.xml
> <root/>
>
> $ java -cp /usr/share/java/saxonb.jar net.sf.saxon.Transform index.xml buggy.xsl; echo
> abracada*
That's a bug in GCJ. IT works fine with SUN JDK 6. Reassigning the bug.
I havent looked into the saxonb sources for this but I bet this is a
bug in the regexp implemented of GNU classpath.
Cheers,
Michael
More information about the pkg-java-maintainers
mailing list