From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10733: 24.0.93; w32 file truncation Date: Mon, 06 Feb 2012 23:09:46 +0200 Message-ID: <83pqdrbrdx.fsf@gnu.org> References: <83vcnjc1yj.fsf@gnu.org> <87r4y74zew.fsf@wanadoo.es> <83sjinbyez.fsf@gnu.org> <20120206.121953.215407921.Takaaki.Ota@am.sony.com> <87fwend82j.fsf@gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328562628 20818 80.91.229.3 (6 Feb 2012 21:10:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 21:10:28 +0000 (UTC) Cc: ofv@wanadoo.es, lekktu@gmail.com, Takaaki.Ota@am.sony.com, 10733@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 22:10:26 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuVpM-00016n-DC for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 22:10:20 +0100 Original-Received: from localhost ([::1]:42635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuVpL-0006IT-M5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 16:10:19 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuVpI-0006Hx-8F for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 16:10:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuVpD-0006CF-25 for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 16:10:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuVpC-0006Bz-Rr for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 16:10:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuVq2-00009g-4f for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 16:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Feb 2012 21:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10733 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10733-submit@debbugs.gnu.org id=B10733.1328562653575 (code B ref 10733); Mon, 06 Feb 2012 21:11:02 +0000 Original-Received: (at 10733) by debbugs.gnu.org; 6 Feb 2012 21:10:53 +0000 Original-Received: from localhost ([127.0.0.1]:57661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuVpp-00009B-EF for submit@debbugs.gnu.org; Mon, 06 Feb 2012 16:10:52 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:53442) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuVpk-00008s-4a for 10733@debbugs.gnu.org; Mon, 06 Feb 2012 16:10:48 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LYZ00C00PCFBH00@a-mtaout20.012.net.il> for 10733@debbugs.gnu.org; Mon, 06 Feb 2012 23:09:46 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.162.243]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYZ00CL5PG65T40@a-mtaout20.012.net.il>; Mon, 06 Feb 2012 23:09:45 +0200 (IST) In-reply-to: <87fwend82j.fsf@gnus.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56592 Archived-At: > From: Lars Ingebrigtsen > Cc: , ofv@wanadoo.es, lekktu@gmail.com, 10733@debbugs.gnu.org > Date: Mon, 06 Feb 2012 21:24:04 +0100 > > "Ota, Takaaki" writes: > > > where "memo" is the NTFS symlink and "memo.old" is a real file. I > > don't know how the size 0 on symlink side is translated into 64K. > > If Emacs doesn't know the size of the file (i.e., the fs says that the > file is 0 bytes long), then Emacs will only read the first 64K of the > file. This was discussed in the bug report about how /proc files are > truncated by Emacs. > > The fix proposed there (i.e., "read until you get to eof") would > probably fix this, too. That's a band-aid at best. If Emacs doesn't know the size of the file that is the target of the symlink and its other attributes, other places will break. What is needed is to resolve the link, i.e. do the equivalent of `lstat'.