Short: Copy from windows application to native introduces garbage characters in the pasted string.
Long: I run Pegasus Mail 4.80 in Wine 8.13 on xubuntu 22.04. I read an email and wishes to copy some text from it. I select the text and edit-copy. Then I switches to Emacs (linux native) and paste. I get the text but also some trailing garbage. I also tried saving the clipboard to file with xclip and also gets garbage. Thus it seems to be that the problem is with either Pegasus or Wine.
If I use wine to run Notepad++ I do not get the garbage. Nor with native Mousepad. If I paste to Notepad++, remove the garbage and copy to clipboard again, I get no garbage in Emacs.
If I save clipboard to file in wine "wine winclip.exe -p foo.bin" I get no garbage. If I save clipboard in linux "xclip -selection clipboard -o >foo.txt" I get garbage. I used winclip from https://www.spinellis.gr/sw/outwit/
Other Pegasus users says the problem does not exist on Windows.
Could there be some problem with syncing windows clipboard and linux?
Any suggestions on how to further search for the problem?
Paste garbage
Re: Paste garbage
I found Free Clipboard Viewer and it suggests that it may be a problem with the application Pegasus Mail.