From owner-freebsd-hackers@freebsd.org Thu Apr 1 11:28:23 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E10CA5C988B for ; Thu, 1 Apr 2021 11:28:23 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FB1CC4jCGz3PQM for ; Thu, 1 Apr 2021 11:28:23 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: by mailman.nyi.freebsd.org (Postfix) id A160B5C9543; Thu, 1 Apr 2021 11:28:23 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A125D5C9542 for ; Thu, 1 Apr 2021 11:28:23 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mxt.nsu.ru (mxt.nsu.ru [84.237.50.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FB1C9522Bz3PWK for ; Thu, 1 Apr 2021 11:28:20 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mail.nsu.ru ([84.237.50.42] helo=zimbra.nsu.ru) by mxt.nsu.ru with esmtp (Exim 4.89) (envelope-from ) id 1lRvUl-00078w-QR for hackers@freebsd.org; Thu, 01 Apr 2021 18:28:16 +0700 Received: from localhost (localhost [127.0.0.1]) by zimbra.nsu.ru (Postfix) with ESMTP id C56D6AC0312 for ; Thu, 1 Apr 2021 18:28:15 +0700 (+07) Received: from zimbra.nsu.ru ([127.0.0.1]) by localhost (zimbra.nsu.ru [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 7Gc5RNfUWfYw for ; Thu, 1 Apr 2021 18:28:15 +0700 (+07) Received: from localhost (localhost [127.0.0.1]) by zimbra.nsu.ru (Postfix) with ESMTP id 8C113AC0558 for ; Thu, 1 Apr 2021 18:28:15 +0700 (+07) X-Virus-Scanned: amavisd-new at zimbra.nsu.ru Received: from zimbra.nsu.ru ([127.0.0.1]) by localhost (zimbra.nsu.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id EDSbtyKW56iH for ; Thu, 1 Apr 2021 18:28:15 +0700 (+07) Received: from regency.nsu.ru (unknown [84.237.50.47]) by zimbra.nsu.ru (Postfix) with ESMTPS id 5FF2EAC0312 for ; Thu, 1 Apr 2021 18:28:15 +0700 (+07) Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id 131BSGZb027048 for ; Thu, 1 Apr 2021 18:28:16 +0700 (+07) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id 131BSAVb027001 for hackers@freebsd.org; Thu, 1 Apr 2021 18:28:11 +0700 (+07) (envelope-from danfe) Date: Thu, 1 Apr 2021 18:28:10 +0700 From: Alexey Dokuchaev To: hackers@freebsd.org Subject: Re: wcwidth() and wcswidth() and Latin vs. CJK character width Message-ID: <20210401112810.GA53432@regency.nsu.ru> References: <20210324143117.GA61738@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210324143117.GA61738@regency.nsu.ru> User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 162829 [Apr 01 2021] X-KLMS-AntiSpam-Version: 5.9.20.0 X-KLMS-AntiSpam-Envelope-From: danfe@regency.nsu.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dmarc=pass header.from=nsu.ru policy=quarantine; spf=pass smtp.mailfrom=regency.nsu.ru; dkim=none X-KLMS-AntiSpam-Info: LuaCore: 441 441 d8b9a5b7b92fd8a4a285bba155aec05d4c327708, {rep_avail}, {Tracking_from_domain_doesnt_match_to}, zimbra.nsu.ru:7.1.1; 127.0.0.199:7.1.2; regency.nsu.ru:7.1.1; nsu.ru:7.1.1; 84.237.50.42:7.1.2; d41d8cd98f00b204e9800998ecf8427e.com:7.1.1, {Tracking_smtp_domain_mismatch}, ApMailHostAddress: 84.237.50.42 X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2021/04/01 09:29:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, not scanned, license restriction X-Rspamd-Queue-Id: 4FB1C9522Bz3PWK X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.20 / 15.00]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:mxt.nsu.ru]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[nsu.ru:+]; DMARC_POLICY_ALLOW(-0.50)[nsu.ru,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[danfe@nsu.ru,danfe@regency.nsu.ru]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[84.237.50.40:from]; ASN(0.00)[asn:3335, ipnet:84.237.48.0/21, country:RU]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[danfe@nsu.ru,danfe@regency.nsu.ru]; DWL_DNSWL_NONE(0.00)[nsu.ru:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[nsu.ru:s=email]; FREEFALL_USER(0.00)[danfe]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[84.237.50.40:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[84.237.50.40:from]; RCVD_COUNT_SEVEN(0.00)[8]; MAILMAN_DEST(0.00)[hackers] X-Mailman-Approved-At: Fri, 02 Apr 2021 08:01:00 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2021 11:28:23 -0000 On Wed, Mar 24, 2021 at 09:31:17PM +0700, Alexey Dokuchaev wrote: > Hi there, > > I've been wondering if there's anything like Markus Kuhn's implementation* > in our base libraries for $subj (my quick naive search didn't turn up any > results). If yes, could someone point me at it? If no, how feasible would > it be to add Markus' code to our libc or perhaps some ancillary library? So I guess lack of replies mean "please go ahead". :-) Before I open a DR for adding wcwidth.c to libutil, how do we handle single 3rd-party files, last modified in 2007? :) Just add them as is, apply any necessary changes, and commit (together with the manpage), or they must go through the vendor area like other contributed software? ./danfe