From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: init_buffer PWD fix Date: 22 Apr 2002 22:16:45 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200204220618.g3M6Icg23696@sic.twinsun.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=euc-jp Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1019512844 24702 127.0.0.1 (22 Apr 2002 22:00:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2002 22:00:44 +0000 (UTC) Cc: Paul Eggert , emacs-devel@gnu.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 16zlrY-0006QI-00 for ; Tue, 23 Apr 2002 00:00:44 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16zlsR-00008U-00 for ; Tue, 23 Apr 2002 00:01:39 +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 16zlr6-0003yZ-00; Mon, 22 Apr 2002 18:00:16 -0400 Original-Received: from gadolinium.btinternet.com ([194.73.73.111]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zlo8-0003ZC-00 for ; Mon, 22 Apr 2002 17:57:13 -0400 Original-Received: from host213-1-104-115.in-addr.btopenworld.com ([213.1.104.115] helo=nyaumo.btinternet.com) by gadolinium.btinternet.com with esmtp (Exim 3.22 #8) id 16zlo0-0006Xk-00; Mon, 22 Apr 2002 22:57:05 +0100 Original-Received: from nyaumo.btinternet.com (localhost [127.0.0.1]) by nyaumo.btinternet.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id WAA00835; Mon, 22 Apr 2002 22:16:45 +0100 Original-To: Keiichiro Nagano (=?iso-2022-jp?b?GyRCMUpMbjc9MGxPOhsoQg==?=) In-Reply-To: Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 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:3055 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3055 Keiichiro Nagano (=B1=CA=CC=EE=B7=BD=B0=EC=CF=BA) write= s: > > PWD is unreliable on all platforms, but Emacs works around the problem > > with a similar method on all platforms by statting $PWD and ".", and > > using $PWD only if stat results agree. What is the problem with > > this workaround on Windows? >=20 > You cannot get st_ino which makes sence (without cygwin1.dll). > Compile stattest.c on Windows by MSVC (cl.exe), and you will see: Emacs does not use the system stat() on Windows. It is redefined in w32.c, because we know the standard Windows one is buggy. Are you saying there are bugs in that implementation of stat()? --=20 Jason Rumney