pyclip icon indicating copy to clipboard operation
pyclip copied to clipboard

Backwards incompatibility introduced in 0.6.0

Open spyoungtech opened this issue 3 years ago • 1 comments

#10 introduced a new behavior incompatible with older versions of pyclip.

Specifically, binary data which happens to be a string is no longer copied to the clipboard as a text format. This means that this data won't be able to be pasted into programs looking for text formats.

Previously:

echo foo | pyclip copy

would allow the data to be pasted into another application like Notepad. However, in v0.6.0 this no longer works.

spyoungtech avatar Mar 21 '22 12:03 spyoungtech

Probably should do something like what the MacOS variant does:

https://github.com/spyoungtech/pyclip/blob/75bbe626ddcdcbaf60d42a94f4e44c0183bbe9ea/pyclip/macos_clip.py#L117-L122

spyoungtech avatar Mar 23 '22 05:03 spyoungtech