Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2022 19:08:00 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Tomoaki AOKI <junchoon@dec.sakura.ne.jp>, Ivan Quitschal <tezeka@hotmail.com>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>, Kurt Jaeger <pi@freebsd.org>
Subject:   Re: RES: RES: vt newcons mouse paste issue FIXED
Message-ID:  <fd0f9de9-98ac-87b4-2c9d-5fdc27bdb3c4@selasky.org>
In-Reply-To: <20220623014847.067b18a5ba388639cf6009ce@dec.sakura.ne.jp>
References:  <CP6P284MB1900CA1ED5B5BADE054ECB34CBB29@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> <f6c1ee1c-bdd9-c8d6-1385-145022e6765d@selasky.org> <CP6P284MB1900CC7B7F6343DAB1D1E5BCCBB29@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> <41ef5c38-515f-739a-cb47-7cab0e609526@selasky.org> <CP6P284MB1900DD3D6F41CBAF38CF2CA4CBB29@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> <20220623014847.067b18a5ba388639cf6009ce@dec.sakura.ne.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/22/22 18:48, Tomoaki AOKI wrote:
> Hi.
> 
> Not actually tested, but this can cause breakage on non-ascii cases.
> Maybe also (or instead) iswspace() test would be needed.
> Possibly additional mbrtowc() in the argument of iswspace().
> 
> Please see `man 3 multibyte` and `man 3 iswspace`.
> (Possibly more to see.)
> 
> Characters in buf can be multibyte or wide char depending on locale,
> as vt can show at least UTF-8 characters.
> 
> Sorry, not looked into enough how UTF-8 characters outside ascii are
> handled internally on vt.
> 

Thanks for your feedback.

Now using the TCHAR_CHARACTER() macro, which is already used for space 
separation.

See:
https://reviews.freebsd.org/D35552

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fd0f9de9-98ac-87b4-2c9d-5fdc27bdb3c4>