xsel

Program for manipulating the X clipboard
git clone https://git.sinitax.com/kfish/xsel
Log | Files | Refs | README | LICENSE | sfeed.txt

commit ba8656dc7c7e771c802fc957ce3dd128d4b6e3ae
parent f97dca549f499052261eac14fba614d563ad60b2
Author: Federico Mena Quintero <federico@gnome.org>
Date:   Wed, 29 Feb 2012 12:27:29 -0600

Also accept UTF8_STRING for INCR transfers

See https://bugzilla.gnome.org/show_bug.cgi?id=671066 for the bug that
started this.

Xsel was only accepting XA_STRING during INCR transfers; now
it also takes in UTF8_STRING.  Maybe this bug wasn't triggered
before because most selection transfers are small, and the transfer
described in the bug is quite large.

Diffstat:
Mxsel.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xsel.c b/xsel.c @@ -542,8 +542,8 @@ get_append_property (XSelectionEvent * xsl, unsigned char ** buffer, debug_property (D_TRACE, xsl->requestor, xsl->property, target, length); - if (target != XA_STRING) { - print_debug (D_OBSC, "target %s not XA_STRING in get_append_property()", + if (target != XA_STRING && target != utf8_atom) { + print_debug (D_OBSC, "target %s not XA_STRING nor UTF8_STRING in get_append_property()", get_atom_name (target)); free (*buffer); *buffer = NULL;