Created attachment 53943 [details]
How to reproduce:
- Open the attached HTML with GtkLauncher
- Select more than 4 UTF8 characters in the HTML and copy it
- Paste it after "paste here:"
- You should see a string shorter than the original text
This is the reason why editing/pasteboard/copy-backslash-with-euc.html is failing.
I'll post a patch soon later.
Created attachment 53944 [details]
(In reply to comment #1)
> Created an attachment (id=53944) [details]
> Patch v1
FYI, this document doesn't say gtk_selection_data_set() takes the number of UTF8 characters as the length of data.
Comment on attachment 53944 [details]
It seems a comment in the code would be helpful here.
LGTM, I dont' need to see this again, even if you add a comment. If you want to cq it with changes, you can always use "webkit-patch land-safely".
I'm not sure a comment is needed, but if you feel others might be confused by this API like the original author was, then please add one.
Attachment 53944 [details] was posted by a committer and has review+, assigning to Shinichiro Hamaji for commit.
It seemed this fix was done by this change: http://trac.webkit.org/changeset/58468
So, I'll just commit the change for the Skipped list.
Committed r58866: <http://trac.webkit.org/changeset/58866>