What I should have said the other day is that I did try to reproduce the error with your provided sample, and was unable to using the current version of Xerces. So clearly there's some difference between my setup and yours.
Can you document for me the behavior you're seeing inside that routine (inputs, outputs, results from ConvertFromTextToUnicode) and why you think there's a problem, or what it is? It doesn't look right to me that one would replace maxchars with srccount.
What is the result from ConvertFromTextToUnicode in the case that fails (and I assume that it throws just after this?). Is there some mixup with the tracking of the bytesEaten from a previous invocation, such that the convert routine is being called to translate midway into a multibyte character?
James.
On Oct 20, 2003, at 4:25 AM, Bharat Gautam wrote:
Hi
I checked your change. The problem still occurs. Can you look into the error and provide assistance.
The sample file we are working with is attached.
Thanks
Bharat Gautam
-----Original Message-----
From: James Berry [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 18, 2003 9:11 PM
To:[EMAIL PROTECTED]
Subject: Re: Transcoding error with Shift-JIS encoded file on MACOS
Vivek, I fixed a bug in that function on Aug 26 which may have caused a problem for you. You may want to adopt the some of the changes from cvs. James. -----Original Message----- From:Vivekanand V. Sent:Monday, October 20, 2003 4:47 PM To:Bharat Gautam Subject:FW: Transcoding error with Shift-JIS encoded file on MACOS
-----Original Message----- From:Vivekanand V. Sent:Saturday, October 18, 2003 4:14 PM To:[EMAIL PROTECTED] Subject:Transcoding error with Shift-JIS encoded file on MACOS
I get a "Invalid multibyte source text sequence encountered" error on parsing the attached file. I am using xerces C++ v2.1. The code where this error occurs is in MacOSUnicodeConverter.cpp (function MacOSTranscoder::transcodeFrom) when it executes ConvertFromTextToUnicode() function. From what it appears the problem is with the iOutputBufLen parameter. If I replace maxChars with srcCount then everything works fine.
Is this a bug or am I doing something wrong?
Kindly assist
Vivek
<Test.xml>------------------------------------------------------------- --------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]