Comment 2 for bug 133096

Revision history for this message
In , Thomas Dickey (dickey) wrote : Re: Bug#231413: xsel: Xsel UTF-8 support patch

On Tue, Oct 25, 2005 at 05:20:04AM +0200, Sergey Kogan wrote:
> Package: xsel
> Version: 0.9.6-1
> Followup-For: Bug #231413
>
> Xsel doesn't support XA_UTF8_STRING selection target when retrieving or
> setting selections. Attached is a quick patch to make xsel
> UTF8_STRING-enabled. Please note that this patch is not 100% correct.
> With this patch applied, xsel will always ask other applications for
> XA_UTF8_STRING instead of XA_STRING. Thus it could fail to communicate
> selection with applications not aware of UTF8_STRING selection target.
> Hovever, most of today programs (e.g. xterm, mozilla) handle
> UTF8_STRING just fine, so this patch will probably work for you.

On the other hand, UTF8_STRING is an extension that won't work with other
platforms. I'd rather have a utility that works more than "most" of the
time.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net