Clipboard text written with wxTextDataObject can be pasted into Chrome with a NUL character after each character.
For example, the attached sample puts this on the clipboard:
sample text
Pasting into Chrome’s address bar produces data equivalent to:
s\0a\0m\0p\0l\0e\0 \0t\0e\0x\0t\0
Build and run the attached clipboard_chrome_repro.cpp:
g++ -std=c++17 clipboard_chrome_repro.cpp $(wx-config --cxxflags --libs) \
-o clipboard_chrome_repro
./clipboard_chrome_repro
Dismiss the confirmation dialog, focus Chrome’s address bar, and paste. The sample places these clipboard representations in a wxDataObjectComposite:
Chrome pastes:
sample text
Chrome receives text with interleaved NUL characters.
This may be related to 7148a49 (“Map wxDF_TEXT to text in UTF-8 encoding in wxOSX”), included in
3.3.3. The native format chosen for wxDF_TEXT and wxDF_UNICODETEXT may be inconsistent when both are
available.
3.3.3, Cocoa port, macOS on Apple Silicon.tit
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Looks the same as #26680 (already fixed in the GIT master branch).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
yes, seems to be fixed, thanks, @PBfordev
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()