[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <nycvar.YSQ.7.76.1807172304250.11681@knanqh.ubzr>
Date: Tue, 17 Jul 2018 23:10:27 -0400 (EDT)
From: Nicolas Pitre <nicolas.pitre@...aro.org>
To: Adam Borowski <kilobyte@...band.pl>
cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jslaby@...e.com>, linux-kernel@...r.kernel.org,
linux-console@...r.kernel.org
Subject: Re: [PATCH 0/3] use unicode for vt mouse paste
On Wed, 18 Jul 2018, Adam Borowski wrote:
> Hi!
> Based on Nicolas' nice work (in tty-next), let's avoid corrupting characters
> that have been copy+pasted via mouse selection. The uniscr array holds
> their original identity even if they got mangled by glyph conversion.
> The glyph conversion lossily turns similar-looking characters into a
> representation, and everyone else into a replacement character.
>
> There's no proper handling for CJK (yet?) but anything of wcwidth()==1 will
> work fine.
>
> The whole thing doesn't get enabled until something reads from /dev/vcsu for
> that console, but let's test this code first before enabling it widely.
Glad to see this. For the whole set you may add:
Acked-by: Nicolas Pitre <nico@...aro.org>
> Diffstat:
> drivers/tty/vt/selection.c | 48 +++++++++++++++++++++++++++++-------------------
> drivers/tty/vt/vt.c | 10 ++++++++++
> include/linux/selection.h | 1 +
> 3 files changed, 40 insertions(+), 19 deletions(-)
>
>
> --
> // If you believe in so-called "intellectual property", please immediately
> // cease using counterfeit alphabets. Instead, contact the nearest temple
> // of Amon, whose priests will provide you with scribal services for all
> // your writing needs, for Reasonable And Non-Discriminatory prices.
>
Powered by blists - more mailing lists