[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#372278: xserver-xorg-input-all: using clipboard with >8 bits characters doesn't work



On Fri, Jun 09, 2006 at 11:02:01AM +0200, Bartosz Fenski aka fEnIo wrote:
> I'm not sure which package should I choose for this particular problem
> cause I'm not aware of internal mechanismes in X.org.
> 
> Please forward/reassign this bugreport to the correct place if this is
> wrong one.
> 
> The problem is when I try to mark some text (in Firefox for example) and it
> contains some characters like apostrophe wrote using entities like ’.
> 
> X clipboard seems to have problems with such characters and it's not
> possible to paste marked text to the other application like xterm.
> 
> I suppose it's problem with UTF handling, but it's not possible to paste
> even broken text without that >8 bit characters. Middle mouse button
> doesn't paste anything. Maybe it should simply strip >8 bits characters and
> paste only these that are correct for 8bit encoding.

Define 'broken'.

X actually has no clipboard role.  What happens is this:
  * you select something in Firefox,
  * Firefox informs X that it now owns the PRIMARY selection,
  * you middle-click in xterm,
  * xterm queries X as to who owns the PRIMARY selection,
  * Firefox and xterm do type negotiation, and the most acceptable type
    is sent to xterm.

So you'd have to be looking at what went on in the type negotiation
between Firefox and xterm.

I assume you're pasting UTF-8 quotation marks (‘’´) into a non-UTF-8
terminal, and things go south?  If so, it's a bug in either Firefox for
not gracefully dealing with other encodings, or xterm.

Cheers,
Daniel

Attachment: signature.asc
Description: Digital signature


Reply to: