[
https://issues.apache.org/jira/browse/XERCESC-2052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Scott Cantor resolved XERCESC-2052.
-----------------------------------
Resolution: Fixed
Re-closing since it appears we're closing the 3.1 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.0, 3.1.1, 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.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]