DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26886>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26886

Iconv calcRequiredSize() fails with multibyte encoding like UTF8

           Summary: Iconv calcRequiredSize() fails with multibyte encoding
                    like UTF8
           Product: Xerces-C++
           Version: 2.4.0
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to