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: Wed, 20 Jul 2022 20:16:29 +0300 Message-ID: <83h73bln6a.fsf@gnu.org> References: <87ilnsq4cr.fsf@gnu.org> <87mtd3n455.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17723"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, winkler@gnu.org To: sds@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 20 19:17:28 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 1oEDKB-0004PR-Tu for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Jul 2022 19:17:27 +0200 Original-Received: from localhost ([::1]:57550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEDKA-0004Pw-QB for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Jul 2022 13:17:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEDJO-0003EP-9w for emacs-devel@gnu.org; Wed, 20 Jul 2022 13:16:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34316) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEDJN-0006zV-Tv; Wed, 20 Jul 2022 13:16:37 -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=+axOtWEfSiR6uMFcN/MdbUBf3W7EXEcB1Z6quR1UkKM=; b=pfHQMBvSKRIc ocYaz8Fs9ubVVm264+wV/D8SzpWsDpqZzEIZEtKcn0g9Af9IpXexRlWuR1Lj5P8Pt9W0CFfkIaqiP BPmMitDqO5VIHXDtJJ4wy9tn9RC5FclBOKgndmIhQqxE51VyF5BWJ2P3hY8uugG5KMLPh4ZhefYHB iyHeIgn5b2wS7mJL40sv/qpkiyG+HOwX/Z5Kj6hg0NTEGvi4T8EKeivHYd8M0EhXPEFYROQzKFGSD KA/duHPmPIgraZubZiBGYryCuIdw5mpLRvYXhaVvXhZcCc4VjIa6vqTGBCpza0RXUl4Whypb3LXgf R9a+FJTNOG/7Bbcf9Lvh+Q==; Original-Received: from [87.69.77.57] (port=2658 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 1oEDJN-00086a-Ag; Wed, 20 Jul 2022 13:16:37 -0400 In-Reply-To: (message from Sam Steingold on Wed, 20 Jul 2022 13:06:41 -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:292312 Archived-At: > From: Sam Steingold > Date: Wed, 20 Jul 2022 13:06:41 -0400 > > > - BBDB needs to know whether a name is already present in the database > > or not, ignoring case. The function bbdb-string= is again what Sam > > suggests to put into subr.el. The function string-collate-equalp > > might be better suited for this. But which locale should it use? > > `bbdb-file-coding-system' ? That's not the locale, that's a locale's _codeset_. > > Is there a "univeral default locale"? > > UTF-8 is, I think, the generally accepted universal default today. There's no such locale, AFAIK. UTF-8 is again just a codeset.