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 (Closed) (JIRA)" <xa...@xml.apache.org> on 2011/12/10 05:08:39 UTC

[jira] [Closed] (XALANC-535) If an error/warning message contains not-displayable character for the local encoding , no message is shown at all

     [ https://issues.apache.org/jira/browse/XALANC-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven J. Hathaway closed XALANC-535.
-------------------------------------

    Resolution: Won't Fix
    
> If an error/warning message contains not-displayable character for the local encoding , no message is shown at all
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: XALANC-535
>                 URL: https://issues.apache.org/jira/browse/XALANC-535
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: CurrentCVS
>         Environment: all
>            Reporter: Dmitry Hayes
>            Assignee: Dmitry Hayes
>            Priority: Minor
>             Fix For: CurrentCVS
>
>         Attachments: patch.txt, patch2.txt
>
>
> For an input:
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>      version="1.0">
>   <xsl:output encoding='XML' version='1.0'/>
>   <xsl:template match="/">
>     <out>
>         <xsl:element name='Somename_&#x2028;'/>
>     </out>
>   </xsl:template>
> </xsl:stylesheet>
> output:
> <?xml version="1.0" encoding="UTF-8"?><out/>
> In the XalanDOMString.cpp, "doTranscodeToLocalCodePage" function
> ...
> if (wcstombs(&theTargetVector[0], theTempSource, targetLen) == ~size_t(0))
> {
> 	theTargetVector.clear();
> 	return false;
> }
> ...
> "wcstombs" fails and we return the empty vector . Probably solution here may be, if transcoding to the local code page fails , try to transcode to UTF8 and return the vector

--
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