[Webkit-unassigned] [Bug 183898] New: [GTK] Insert/delete text on a line after multibyte letter mispositions the action

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 22 07:28:21 PDT 2018


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

            Bug ID: 183898
           Summary: [GTK] Insert/delete text on a line after multibyte
                    letter mispositions the action
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcrha at redhat.com

This had been reported downstream:
https://bugzilla.gnome.org/show_bug.cgi?id=794408

And I can reproduce it with webkitgtk4-2.18.6-1.fc27.x86_64 too in the MiniBrowser.

Steps:
a) run MiniBrowser in editor mode:
   $ /usr/libexec/webkit2gtk-4.0/MiniBrowser --editor-mode
b) copy the following line into the MiniBrowser body (the first letter is a multibyte letter,
   unless I made anything wrong or the browser re-encoded the string, in which case use
   the string from the downstream bug, with which I've been able to reproduce this)

   á some text here

c) position cursor in the middle of the 'text' word, thus between 'e' and 'x'
d1) press the 'A' key

    Actual:   'te|xt' becomes 'tAe|xt'
    Expected: 'te|xt' becomes 'teA|xt'

d2) press Backspace key

    Actual:   'te|xt' becomes 'e|xt'
    Expected: 'te|xt' becomes 't|xt'

d3) press Delete key

    Actual:   'te|xt' becomes 'tx|t'
    Expected: 'te|xt' becomes 'te|t'

Where the '|' is the cursor sign, not a real letter. The more multibyte letters precede the cursor the bigger offset is "used".

This looks like a usual "byte-length" versus "char-length" issue to me.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180322/38d4636f/attachment.html>


More information about the webkit-unassigned mailing list