[Webkit-unassigned] [Bug 48227] [GTK] Handle surrogate pairs in TextBreakIteratorGtk

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 25 04:03:51 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=48227


Carlos Garcia Campos <cgarcia at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #71728|                            |review?
               Flag|                            |




--- Comment #1 from Carlos Garcia Campos <cgarcia at igalia.com>  2010-10-25 04:03:51 PST ---
Created an attachment (id=71728)
 --> (https://bugs.webkit.org/attachment.cgi?id=71728&action=review)
Patch to handle surrogate pairs in TextBreakIteratorGtk

TextBreakIteratorGtk uses utf8 because it's what pango expects, but we need to return indices for the given input string that it's in utf16. The number of characters is the same for both utf16 and ut8 except when the input string contains surrogate pairs. We need to keep both, the index for the utf8 string to be used internally, and the index for the utf16 string to be used as return value of the iterator interface. It fixes test fast/forms/textarea-maxlength.html

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list