From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: case-insensitive string comparison Date: Tue, 26 Jul 2022 19:10:47 +0300 Message-ID: <837d3zdfco.fsf@gnu.org> References: <87ilnsq4cr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29020"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, rms@gnu.org, bruno@clisp.org To: sds@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 26 18:11:27 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGN9a-0007Se-NX for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jul 2022 18:11:26 +0200 Original-Received: from localhost ([::1]:42954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGN9Z-0002MA-J3 for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jul 2022 12:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGN8t-0001aD-UV for emacs-devel@gnu.org; Tue, 26 Jul 2022 12:10:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGN8t-0005zW-4j; Tue, 26 Jul 2022 12:10:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CLMO9BTxy6g0ARKMomFnX7Ddd09WWzt69UH5yFfSOaU=; b=r7AGarN9FajE TAEv8g6jnsd7Euq1xbkrr+O8UF6PgYIZK7xsgkztdDLVqn3joNi8ebeu/BIQoNewi9ChaG+yMHllD P5Ip4QkbrYoDU6351xHR7JL/xBk3DpSY9nAmNNLAaLg4t/ULPzc+7/ub1PXUqUmkmMSCTRRMD595Q eLlMWMDU1Abn2gkydGwhA58s+MUYUP2bSRZLDF7CtnNa459oTeuFWhlMrnKUWhFjKXVmQiJvNRO+4 Vi8yI4rhOhDFwcf66dn+aOXdHLKlJTkHPdxNWr4bKpE0/Gy5r1+nuJWEJu6n7ADRX9EkxB8vxc025 0xY76dUjQGFU1O5B10g64A==; Original-Received: from [87.69.77.57] (port=3282 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGN8s-00053L-8T; Tue, 26 Jul 2022 12:10:42 -0400 In-Reply-To: (message from Sam Steingold on Tue, 26 Jul 2022 10:28:01 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292707 Archived-At: > From: Sam Steingold > Cc: Bruno Haible > Date: Tue, 26 Jul 2022 10:28:01 -0400 > > Bruno Haible replied in this thread, suggesting libunistring via gnulib. > I think this is the easiest way to handle the issue. Using an external library whose notion of string comparison and letter-case cannot be controlled by Emacs is a non-starter. With the current machinery, a Lisp program or a user can control up/down-casing by specifying a buffer-local case-table, and we won't give up this important functionality. Other than that, I'm not aware of anything that libunistring can do that Emacs cannot: we import the same Unicode tables as libunistring does, so we have the same data to do these jobs.