Browse files

Also accept UTF8_STRING for INCR transfers

See 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.
  • Loading branch information...
1 parent f97dca5 commit ba8656dc7c7e771c802fc957ce3dd128d4b6e3ae @federicomenaquintero federicomenaquintero committed Feb 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xsel.c
4 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;

0 comments on commit ba8656d

Please sign in to comment.