From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: init_buffer PWD fix Date: Wed, 24 Apr 2002 14:10:36 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: <8296-Wed24Apr2002190326+0300-eliz@is.elta.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1019671963 20445 127.0.0.1 (24 Apr 2002 18:12:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2002 18:12:43 +0000 (UTC) Cc: eggert@twinsun.com, emacs-devel@gnu.org, knagano@sodan.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 170RFz-0005Je-00 for ; Wed, 24 Apr 2002 20:12:43 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 170RHl-0001Gv-00 for ; Wed, 24 Apr 2002 20:14:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 170RFp-0007LU-00; Wed, 24 Apr 2002 14:12:33 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 3.34 #1 (Debian)) id 170RDw-0007HY-00; Wed, 24 Apr 2002 14:10:36 -0400 Original-To: himi@meadowy.org In-Reply-To: (himi@meadowy.org) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3197 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3197 > From: MIYASHITA > Hisashi(=?ISO-2022-JP?B?GyRCNVwyPBsoQiAbJEI+MBsoQjpISU1J?=) > > Date: Thu, 25 Apr 2002 02:13:30 +0900 > > I can imagin many bad situations. Suppose the following > situation as an example. > > (1) sh or tcsh set "PWD" and the current directory to "c:/PROGRA~1" > (1) (this name is > the short name of "c:/Program Files"), and then invokes a > (1) program. > > (2) the invoked program set the current directory to "c:/Program > (2) Files" > by SetCurrentDirectory(). > > (3) then it invokes Emacs. > > I confirmed that by invoking tcsh.exe -> cmd.exe -> emacs.exe. > > In this case, Emacs set the default directory to "c:/PROGRA~1", > which is clearly > different from the expected value. I can throw together an example where the opposite is true: the value of PWD is better than what GetCurrentDirectory returns. In any case, both c:/PROGRA~1 and c:/Program Files point to the same directory, so this is at best an aesthetic annoyance. > I can agree on the current code on many > UNIX systems. And surely it's convenient. > > On Windows, however, it's not only useless but also harmful, I > think. OTOH, differences in behavior on different platforms are not a good idea, either. It makes the documentation either confusing or incorrect, and it confuses people who need to work on several different platforms.