We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5178

Summary: Wayland: SDL_SetClipboardText appends extra null byte in the end
Product: SDL Reporter: Ivan Molodetskikh <yalterz>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   

Description Ivan Molodetskikh 2020-06-09 10:38:43 UTC
hg revision 71c13a6765a9405927a5bf0aaf1471f4dabb3b01, also SDL 2.0.12 and earlier

Run test/testdropfile, press Ctrl-C to copy.

└─ wl-paste -n | hexdump -C
00000000  53 44 4c 20 72 6f 63 6b  73 21 0a 59 6f 75 20 6b  |SDL rocks!.You k|
00000010  6e 6f 77 20 69 74 21 00                           |now it!.|
00000018

Note the extra null-byte in the end, it shouldn't be there.