On Fri, 30 Jul 2010 04:09:49 +0200, Paolo Ferrario <sko...@tiscali.it>  
wrote:

>
> Hi all,
>
> I've  applied the Kim Woelders patch [20 Aug 2009] in screen.c
> of Eterm 0.9.5.
>
> All is working ok, except for Opera 10.60, who dont get the clipboard  
> text from
> Eterm.
>
> But it works if I use instead e.g.
> echo -n "123" | xclip
> then I paste in Opera.
>
> So I've tried this, Opera now works, nothing broken
> [copying-pasting eterm <-> ooffice vi firefox xterm emacs qtapps etc].
>
>
>
> diff screen.c.bak0 screen.c
>
> 3363,3364c3363,3364
> <     } else if (rq->target == XA_STRING) {
> < XChangeProperty(Xdisplay, rq->requestor, rq->property, rq->target,
> < 8, PropModeReplace, selection.text, selection.len);
> ---
>>     } else {
>> XChangeProperty(Xdisplay, rq->requestor, rq->property, XA_STRING,
>> 8, PropModeReplace, selection.text, selection.len);
>
It looks like many programs request UTF8_STRING and not STRING.

I'm no expert on selections but if I'm not mistaken this change would make  
us give a STRING regardless of what we were asked for.
It would then be up to the requestor to convert that to utf8. I guess  
that's ok.

The alternative would be to test for UTF8_STRING and do a conversion, but  
IMO that might as well wait for Eterm to actually become utf8-aware.

Michael?

/Kim


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to