You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Steven J. Hathaway (Commented) (JIRA)" <xa...@xml.apache.org> on 2011/12/07 05:33:40 UTC
[jira] [Commented] (XALANC-481) XalanC doesn't handle correctly the
Unicode surrogate pairs
[ https://issues.apache.org/jira/browse/XALANC-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164132#comment-13164132 ]
Steven J. Hathaway commented on XALANC-481:
-------------------------------------------
This is still an issue. The value returned indicates the number of UTF-16 codes, not the number of Unicode codepoints.
> XalanC doesn't handle correctly the Unicode surrogate pairs
> -----------------------------------------------------------
>
> Key: XALANC-481
> URL: https://issues.apache.org/jira/browse/XALANC-481
> Project: XalanC
> Issue Type: Bug
> Components: XalanC
> Affects Versions: CurrentCVS
> Environment: all
> Reporter: Dmitry Hayes
> Assignee: Ashley Zinyk
> Priority: Minor
> Fix For: CurrentCVS
>
>
> For the stylesheet :
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> <xsl:variable name="single_surrogate_pair">𐀁</xsl:variable>
> <xsl:template match="/">
> <out lenght="{string-length($single_surrogate_pair)}"></out>
> </xsl:template>
>
> </xsl:stylesheet>
> we have an output:
> <?xml version="1.0" encoding="UTF-8"?><out lenght="2"/>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.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