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 14:35:21 +0300 Message-ID: <834jzcm2yu.fsf@gnu.org> References: <2492DD45-FAF2-4A8F-AA70-0B10AA6FFB35@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37002"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, mattiase@acm.org To: tomas@tuxteam.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 20 13:59:02 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 1oE8M2-0009Qi-60 for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Jul 2022 13:59:02 +0200 Original-Received: from localhost ([::1]:49864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE8M0-0003RL-1f for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Jul 2022 07:59:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE7zG-0000Ci-P0 for emacs-devel@gnu.org; Wed, 20 Jul 2022 07:35:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE7zG-0003RD-BN; Wed, 20 Jul 2022 07:35:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ke8h7NE21BNoUCsdB4fPDiBVmie2UYYSiQe3Q3V1FPs=; b=OuURewPhHapWi2ZElK5b CzdHKx8gezr6zZ7CGVElvzgmimU278ZEQuiMKy7LaV4vZb32NbxVYztmxR399uBgjomEmucWv42QZ MgsG61KUTc3ukpM/PVF6l09SvNLBvp+bb4mC1ORRvsZ67tofAX+rLNl6tBVeg1wWUEF9RDnfp9zc6 +SXUKJGAAIeZEcmjZFXLunnxQkKj2pxZ3/DurO9DqjI8vADkm4KY4I9XZkIVGuHBJqqyb28QITuyy yDameQ2VWC1WtcqAoLp3G0ThFruRKK5N6fHhvLnnERhGBbd+c69PD4UH6dI56a+zE0uy986k8JDG0 tS8yK34GSzlidA==; Original-Received: from [87.69.77.57] (port=4805 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 1oE7zF-0001Rh-Qv; Wed, 20 Jul 2022 07:35:30 -0400 In-Reply-To: (tomas@tuxteam.de) 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:292304 Archived-At: > Date: Wed, 20 Jul 2022 06:39:46 +0200 > Cc: Mattias Engdegård > From: > > One case (heh) which gets too little attention in that > (good) ref is "i" "ı" vs. "İ" vs. "I". You've to decide > on a language environment to get a chance of doing it > right (in Latin languages there are only 1 and 4, and > they map to each other, in Turkic languages 1 and 3 > correspond, as 2 and 4 do). > > The ref to the Unicode FAQ [1] from your ref shows that > even the Unicode folks have given up on that. To me, it > looks like an especially sleazy way to admit "well, folks, > we've messed up on this one". > > Human languages are a messy mix, in which politics figures > prominently. Unicode reflects that. This could be hard on the Unicode Consortium, but relatively easy in Emacs: just bind the case table of the current buffer to something reasonable around code which performs case-insensitive comparison.