* * *

Author Topic: Trailing NULL in clipboard data with GTK2  (Read 415 times)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3084
  • I like bugs.
Trailing NULL in clipboard data with GTK2
« on: June 03, 2017, 11:30:25 am »
Attention BBasile and others who were hit by this issue:
 https://bugs.freepascal.org/view.php?id=21453
I had to add define GTK_REMOVE_CLIPBOARD_NULL around the code that removes the NULL.
It will be in Lazarus 1.8RC2.
With a new version, add the define to Configure Build Lazarus dialog, check it and save settings. Next time you build Lazarus, the trailing NULL will be removed again.

Removing the trailing NULL here was apparently a wrong way as it created a regression bug, preventing copy/paste between Lazarus instances.
 https://bugs.freepascal.org/view.php?id=31547
That affected all GTK2 users but now it works again by default.

The trailing NULL bug appeared only in some machines, depending on window manager and desktop system I guess. For example I have not experienced it.

I still hope somebody studies the issue and fixes it properly.
« Last Edit: June 03, 2017, 06:04:51 pm by JuhaManninen »

BBasile

  • Sr. Member
  • ****
  • Posts: 303
Re: Trailing NULL in clipboard data with GTK2
« Reply #1 on: August 24, 2017, 03:21:00 pm »
I've decided not to update to 1.8 so i won't be affected by the step back.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus