Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-11

Error when copying to clipboard.

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hi,

When doing a copy to the clipboard from the IDE source editor, lazarus adds the terminating NULL. This is wrong and sometimes causes errors.

Select text in IDE. Copy to search/address bar of browser. hit enter.

Results in following query being executed:

https://www.google.be/search?q=TObject%00&oq=TObject%00&ie=UTF-8

Notice the %00...

If you position the cursor at the end and press backspace in the search bar/address bar, you'll see that the readable text is not actually becoming shorter, because you are then deleting the terminating null...

Michael.

Reply by email

Juha Manninen
to Ondrej Pokorny

Yes, build Lazarus with GTK_REMOVE_CLIPBOARD_NULL. There are 2 alternative bugs. Choose the one that bothers you less. :( I will be happy if somebody finds a way to fix it properly. I don't understand the relevant code enough.

Juha

Reply by email