Nigel Meachen created XERCESC-2052:
--------------------------------------
Summary: 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
Environment: Windows 32 and 64 bit compiled with VS2010
Reporter: Nigel Meachen
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: [email protected]
For additional commands, e-mail: [email protected]