pyclip
pyclip copied to clipboard
Backwards incompatibility introduced in 0.6.0
#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.
Probably should do something like what the MacOS variant does:
https://github.com/spyoungtech/pyclip/blob/75bbe626ddcdcbaf60d42a94f4e44c0183bbe9ea/pyclip/macos_clip.py#L117-L122