Re: Problem with multi-byte characters in str:padding

Nick Wellnhofer <[email protected]> Sun, 4 Aug 2013 16:49:58 +0200
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
On Aug 4, 2013, at 15:52 , Tobias Hoffmann <[email protected]> wrote:

> when using  (e.g.)
> <xsl:value-of select="str:padding(@no, '&#160;')"/>
> via xsltproc I got unexpected errors:
>  xmlXPathTranslateFunction: Invalid UTF8 string
> 
> AFAIKT the problem is caused by code in libexslt/strings.c
> (from git.gnome.org, see my comments //):

Your analysis is correct. I fixed this in commit 51528395:

https://git.gnome.org/browse/libxslt/commit/?id=515283959aae470a6ee5033deb9f977a489e7578

Nick