Skip to content

vnc: support Extended Clipboard for non-Latin-1 text#1704

Open
huchaogithup wants to merge 1 commit intoFreeRDP:masterfrom
huchaogithup:master
Open

vnc: support Extended Clipboard for non-Latin-1 text#1704
huchaogithup wants to merge 1 commit intoFreeRDP:masterfrom
huchaogithup:master

Conversation

@huchaogithup
Copy link
Copy Markdown

Register GotXCutTextUTF8 callback so the plugin receives UTF-8 data when the server advertises Extended Clipboard support. Add a matching queue handler that sets the GTK clipboard directly without re-encoding.

On the send path, push the original UTF-8 string into the event queue and try SendClientCutTextUTF8() first. Fall back to SendClientCutText() with Latin-1 if the server does not support the extension.

Register GotXCutTextUTF8 callback so the plugin receives UTF-8 data
when the server advertises Extended Clipboard support. Add a matching
queue handler that sets the GTK clipboard directly without re-encoding.

On the send path, push the original UTF-8 string into the event queue
and try SendClientCutTextUTF8() first. Fall back to SendClientCutText()
with Latin-1 if the server does not support the extension.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant