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

Bug#872778: xterm -lc (with UTF-8 locale) cannot properly copy some utf-8 unicode chars



On Wed, Aug 22, 2018 at 08:05:51PM +1000, Zenaan Harkness wrote:
> Create a text file containing e.g. the musical natural symbol, and
> the mathematical function symbol, e.g. "ƒƒƒ ♮♮♮" (three function
> symbols, a space, and three natural symbols, inside plain quotes).
> 
> Now in an xterm -lc instance, with a UTF-8 locale, cat the file.
> 
> xterm displays the function and the natural symbols.
> 
> Now start the utf-8 compatible gui editor Geany, and open the same
> file in Geany.
> 
> Copy and paste those characters from Geany, into Geany - works.
> 
> Copy from Geany, paste to xterm - this also works.
> 
> Select/copy from xterm, middle-click paste into Geany - only the
> natural symbols, and not the function symbols, are pasted, also
> pasting to xterm (from copying from xterm) does not work.
> 
> SO, xterm is not properly copying some UTF-8 Unicode characters.

This update is unrelated to the original report, which deals with
characters past BMP (the example uses U+0192 and U+266E).

I have not been able to reproduce the problem.
 
 See also:
> https://lists.debian.org/debian-user/2017/09/msg00518.html
> https://lists.debian.org/debian-user/2017/09/msg00527.html
> 
> Should I file a different bug for this, or just leave this here?

It might be related to #901249, but I cannot say.  The other client
(Geany) seems to be a factor - if you can reproduce the problem with
xsel, that would be helpful.  copy and paste rely on the source to
provide the data in different formats, and the target to request
what's appropriate.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


Reply to: