2012/3/10 zeljko <[email protected]>:
> ok, let's back at beginning ... what problem is caused by trailing null
> terminator under gtk2 ?

When assigning
  Clipboard.AsText := '1234';

and pasting to some programs (I only experience it with jEdit though),
'1234'#0 is pasted, i.e., string of length 5 instead of length 4.

It can be treated as:
a) a bug in LCL; why add #0 when '1234' was assigned, not '1234'#0. If
it is required by some widgetset then add trailing zero in the
widgetset;
b) a bug in LCLGTK2; regardless of what LCL does, programs in GTK2 (or
rather Linux programs, since LCLQT also strips the #0) should not put
trailing #0 to the clipboard;
c) a bug in the program that doesn't strip the trailing zero when
pasting from clipboard (in this case jEdit).

--
cobines

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to