[Lazarus] Setting clipboard on Linux adds ending #0
cobines at gmail.com
Sat Mar 10 14:56:52 CET 2012
2012/3/9 zeljko <zeljko at holobit.net>:
> Good, then prepare patch and that's it :) My observation about openoffice IS
> about OpenOffice (not LibreOffice) maybe 2yrs ago, and probably gtk2 < 2.20
> or something like that.Also when i said "copy" from OO, I didn't mean copy
> via Ctrl + C , but via mouse selection and then middle click into eg TEdit
> or TMemo - that problem existed definitelly.
Indeed, the problem still exists with OpenOffice and LibreOffice, but
this must is a bug in OpenOffice because the selection received from X
doesn't match what was selected by mouse. This only happens with
PRIMARY clipboard (mouse selection), copying via CLIPBOARD selection
(Ctrl+C) doesn't have this problem. The problem also exists when
pasting to other non-Lazarus applications; copying from Lazarus app
into OpenOffice doesn't show any problems.
I have opened an issue:
I basically did the same as in LCLQT - make LCLGTK2 remove the
trailing zero. Also, conversion to COMPOUND_TEXT already indirectly
removed trailing zero.
More information about the Lazarus