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

Alberto Massari resolved XERCESC-1947.
--------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.1.2)
         Assignee: Alberto Massari

A fix is in SVN; please verify

> XMLUTF8Transcoder::transcodeTo  fails with an exception when transcoding 
> single characters that require 3 or more bytes as UTF8.
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESC-1947
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1947
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 3.1.0, 3.1.1
>         Environment: Tested on mac os and debian linux. The failure is only 
> manifest on v3.1.x
>            Reporter: Ben Griffin
>            Assignee: Alberto Massari
>            Priority: Minor
>             Fix For: 3.2.0
>
>         Attachments: TransService.cpp.patch, TransService.patch, transtest.cpp
>
>
> This can be demonstrated with the following 2 lines of code.
>       const XMLCh uval [] = { 0x254B, 0x0000}; //BOX DRAWINGS HEAVY VERTICAL 
> AND HORIZONTAL (needs 3 bytes for utf-8)
>       char* uc = (char*)TranscodeToStr(uval,"UTF-8").adopt(); cout << uc << 
> endl << flush; XMLString::release(&uc); //faulty exception;
> The error is: "terminate called after throwing an instance of 
> 'xercesc_3_1::TranscodingException'"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to