To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=62664





------- Additional comments from [EMAIL PROTECTED] Thu Aug 24 06:47:51 -0700 
2006 -------
>> Please replace this with a simple check of "_rDest.getLength() != ...".
> It can not handle the CJK charactor correctly. It will get the array's whole
> length, not the charactor length.

But isn't this sufficient? I mean, we want to convert a string with |n| Unicode
characters into a byte string, with at most |k| bytes length. Now if after the
conversion of the complete Unicode string to a byte string, if this byte string
has more that |k| bytes - then it doesn't matter *how much* too long it is. It's
irrelevant whether it's only "half a CJK character", or 20 Unicode characters -
too long is too long. And the consequence from "too long" is: throw an 
exception.

So, in my opinion, a check of _rDest's length to be *smaller* than |_nToLength|
should suffice.

Maybe I miss something here, in this case please bare with me :) and elaborate.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
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]

Reply via email to