From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Bug Emacs 21.3: write-file downcasing Date: Fri, 07 Feb 2003 09:07:44 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030207084040.376A.LEKTU@terra.es> References: <20030207053806.2314348234@server2.fastmail.fm> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1044605192 27491 80.91.224.249 (7 Feb 2003 08:06:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 08:06:32 +0000 (UTC) Cc: Emacs Devel Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18h3Wp-00079H-00 for ; Fri, 07 Feb 2003 09:06:31 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18h3gG-0001CK-00 for ; Fri, 07 Feb 2003 09:16:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18h3YV-0004WG-06 for emacs-devel@quimby.gnus.org; Fri, 07 Feb 2003 03:08:15 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18h3YC-0004P3-00 for emacs-devel@gnu.org; Fri, 07 Feb 2003 03:07:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18h3YA-0004Mj-00 for emacs-devel@gnu.org; Fri, 07 Feb 2003 03:07:55 -0500 Original-Received: from [62.22.27.141] (helo=mail.peoplecall.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18h3Y8-0004Df-00; Fri, 07 Feb 2003 03:07:52 -0500 Original-Received: from [62.22.27.143] (jbarranquero.ofi.peoplecall.com [62.22.27.143]) by mail.peoplecall.com (8.11.6/8.11.6) with ESMTP id h1787gP21028; Fri, 7 Feb 2003 09:07:44 +0100 Original-To: "Dhruva Krishnamurthy" In-Reply-To: <20030207053806.2314348234@server2.fastmail.fm> X-Mailer: Becky! ver. 2.05.06 Original-cc: Emacs Bug X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11444 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11444 On Fri, 07 Feb 2003 11:08:06 +0530, "Dhruva Krishnamurthy" wrote: > Approx problem area: > (set-visited-file-name "Dummy.cpp") > (buffer-file-name)=>"dummy.cpp" > In the file "files.el" and function 'set-visited-file-name', only for VMS > the downcasing is done. I do not know why this is happening. The troble is, I suppose, related to this patch: 2002-11-27 Jason Rumney * files.el (file-truename): Canonicalize non-existent names on w32. which tried to solve the following problem: (file-truename "C:/temp/a_file") => "C:/temp/a_file" ; a_file does not exist (file-truename "C:/temp/a_file") => "c:/temp/a_file" ; a_file exists (file-truename "/temp/a_file2") => "/temp/a_file" ; a_file does not exist (file-truename "/temp/a_file") => "c:/temp_a_file" ; a_file exists Jason and I were discussing it a few days ago because the current behavior (after the patch) is murder for people who uses Java and back-port their code to non-Windows platforms. The only fix I can think of seems like a hack, because it would be necessary to do some sort of canonicalization (to get the drive, for example, which presumibly depends on the "process' default drive"), but preserve as much of the user-supplied filename as posible. /L/e/k/t/u