You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Scott Cantor (JIRA)" <xe...@xml.apache.org> on 2016/10/21 00:41:59 UTC

[jira] [Reopened] (XERCESC-2052) TranscodeToStr constructor throws TranscodingException claiming an invalid multi byte sequence when it is valid

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

Scott Cantor reopened XERCESC-2052:
-----------------------------------

Reopening since this was never applied to the active branch.

> TranscodeToStr constructor throws TranscodingException claiming an invalid multi byte sequence when it is valid
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESC-2052
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2052
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 3.1.2, 3.1.3, 3.1.4
>         Environment: Windows 32 and 64 bit compiled with VS2010
>            Reporter: Nigel Meachen
>            Assignee: Alberto Massari
>             Fix For: 3.2.0
>
>
> The following constructor throws an EncodingException
> TranscodeToStr tTransCoder (L"中国制造 / 中國製造","UTF-8", XMLPlatformUtils::fgMemoryManager);
> The code in TranscodeToStr::transcode allocates 26 bytes when 27 are needed, however, it does not reach the reallocation logic as charsRead is returned by trans->transcodeTo as zero. This only occurs in a Release build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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