On Fri, 28 Feb 2025 16:48:39 GMT, Michael Strauß <mstra...@openjdk.org> wrote:
>> As the existing code was already pretty optimistic about 2 byte chars, is it >> possible that is already handled somewhere else? >> I'm not sure whether this is done explicitly somewhere or if CF_UNICODETEXT >> is just tried first. > > Could be, but in any case, the way it's impemented right now doesn't seem to > be right. We should only assume 2-byte characters if what's being pulled from > the clipboard is actually `CF_UNICODETEXT`. As @mstr2 said, I think the data is always converted to CF_UNICODETEXT. If it wasn't there should have been more visible problems, as the current code always assumes wide chars. So I just need to know how much we should change within this ticket: Just removing CF_TEXT from here, or also removing flavors from create_mime_stuff(). ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1724#discussion_r2011696298