From nobody Wed Jun 22 17:08:00 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C22C4864A29 for ; Wed, 22 Jun 2022 17:08:07 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LSqZv05pKz4v28; Wed, 22 Jun 2022 17:08:07 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [178.232.223.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CF3D42604E3; Wed, 22 Jun 2022 19:08:05 +0200 (CEST) Message-ID: Date: Wed, 22 Jun 2022 19:08:00 +0200 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: RES: RES: vt newcons mouse paste issue FIXED Content-Language: en-US To: Tomoaki AOKI , Ivan Quitschal Cc: "freebsd-current@freebsd.org" , Kurt Jaeger References: <41ef5c38-515f-739a-cb47-7cab0e609526@selasky.org> <20220623014847.067b18a5ba388639cf6009ce@dec.sakura.ne.jp> From: Hans Petter Selasky In-Reply-To: <20220623014847.067b18a5ba388639cf6009ce@dec.sakura.ne.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4LSqZv05pKz4v28 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.31 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.12)[-0.120]; NEURAL_HAM_MEDIUM(-0.89)[-0.891]; MLMMJ_DEST(0.00)[freebsd-current]; FREEMAIL_TO(0.00)[dec.sakura.ne.jp,hotmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[178.232.223.95:received] X-ThisMailContainsUnwantedMimeParts: N 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