wxOSX 3.3.3: Clipboard text is pasted with interleaved NULs in Chrome (Issue #26776)

19 views
Skip to first unread message

exkrexpexfex

unread,
Aug 3, 2026, 3:35:28 PM (22 hours ago) Aug 3
to wx-...@googlegroups.com, Subscribed
exkrexpexfex created an issue (wxWidgets/wxWidgets#26776)

Description

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

Reproduction

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:

  • a wxTextDataObject;
  • text/plain;charset=utf-8;
  • wxDF_TEXT before wxDF_UNICODETEXT in the text object’s advertised format list.

Expected result

Chrome pastes:

sample text

Actual result

Chrome receives text with interleaved NUL characters.

Possible regression

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.

Platform and version information

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.Message ID: <wxWidgets/wxWidgets/issues/26776@github.com>

PB

unread,
Aug 3, 2026, 3:55:06 PM (22 hours ago) Aug 3
to wx-...@googlegroups.com, Subscribed
PBfordev left a comment (wxWidgets/wxWidgets#26776)

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.Message ID: <wxWidgets/wxWidgets/issues/26776/5171048260@github.com>

exkrexpexfex

unread,
Aug 3, 2026, 4:07:42 PM (21 hours ago) Aug 3
to wx-...@googlegroups.com, Subscribed
exkrexpexfex left a comment (wxWidgets/wxWidgets#26776)

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.Message ID: <wxWidgets/wxWidgets/issues/26776/5171164463@github.com>

exkrexpexfex

unread,
Aug 3, 2026, 4:07:42 PM (21 hours ago) Aug 3
to wx-...@googlegroups.com, Subscribed

Closed #26776 as completed.


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.Message ID: <wxWidgets/wxWidgets/issue/26776/issue_event/28910636006@github.com>

Reply all
Reply to author
Forward
0 new messages