https://issues.apache.org/bugzilla/show_bug.cgi?id=45001
N. Hira <[EMAIL PROTECTED]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #9 from N. Hira <[EMAIL PROTECTED]> 2008-06-22 20:57:39 PST ---
Follow up...
(Please let me know if I should create a new bug for this kind of thing in
future.)
I've discovered that the original patch to TextPiece does not function as
expected in that a delete() on a Unicode TextPiece results in the TextPiece
being adjusted to an incorrect length.
For every N characters deleted, the new length should be (previousLength - N),
but the current code sets it to (previousLength - (N/2)) when the TextPiece
uses Unicode.
I've attached a Unit Test, an illustrative document, and another patch to (the
current version of) TextPiece.
The Unit Test also illustrates how one can delete all instances of some text
from a Range.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]