From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: find-library-name fails if file (with no extension) exists. Date: Wed, 22 Nov 2006 11:05:23 +0100 Message-ID: <85irh7okyk.fsf@lola.goethe.zz> References: <8764d8u085.fsf@pacem.orebokech.com> <85lkm4zbfa.fsf@lola.goethe.zz> <854pssz8u7.fsf@lola.goethe.zz> <45638B07.2090201@student.lu.se> <85wt5oxtly.fsf@lola.goethe.zz> <456396EA.9030207@student.lu.se> <857ixoxq6e.fsf@lola.goethe.zz> <4563A0E3.9050103@student.lu.se> <85zmakwath.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164190027 20314 80.91.229.2 (22 Nov 2006 10:07:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 10:07:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 22 11:06:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gmp0H-00085n-3a for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 11:06:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gmp0G-0001D8-Mq for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 05:06:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmozA-0000tm-2A for emacs-devel@gnu.org; Wed, 22 Nov 2006 05:05:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gmoz8-0000se-Jl for emacs-devel@gnu.org; Wed, 22 Nov 2006 05:05:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gmoz7-0000sD-R8 for emacs-devel@gnu.org; Wed, 22 Nov 2006 05:05:41 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gmoz7-0007Hx-Jv for emacs-devel@gnu.org; Wed, 22 Nov 2006 05:05:41 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.52) id 1Gmoz7-0006eh-24; Wed, 22 Nov 2006 05:05:41 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id F3E931C29846; Wed, 22 Nov 2006 11:05:23 +0100 (CET) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Wed\, 22 Nov 2006 06\:25\:40 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62654 Archived-At: Eli Zaretskii writes: >> From: David Kastrup >> Date: Wed, 22 Nov 2006 02:04:58 +0100 >> Cc: Juanma Barranquero , Emacs Devel >> >> The problem is that "case sensitivity" requires a notion of "identical >> except for case" > > Only if you use string comparison for comparing file names. File > names are not strings for the purpose of equality, as Juanma pointed > out, and programmers should be educated to think that way. Just > change your abstraction, and you are done. For example, there's a > different function, even in the string class, for ``identical but for > case'' comparison. Where is the guarantee that this function delivers identical results to the operating system? Where is the hash function that makes dealing with directory listings natural? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum