Details
Description
IconvLCPTranscoder::calcRequiredSize (const char* const srcText,..) calculates
the size incorrectly when character encoding is a variable width encoding like
UTF8.
Depending of how many bytes the first character of the string to be transcoded
takes, it is assumed that all characters take the same amount, which is not
true with UTF8 or GB2312.
It seems that this bug has been introduced in version 2.2
(IconvTransService.cpp rev 1.10).
Same bug has been fixed in Win32 transcoder, see bug #23095.
regards,
Mika