From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#10733: 24.0.93; w32 file truncation Date: Mon, 06 Feb 2012 06:25:32 +0100 Message-ID: <874nv45y9f.fsf@wanadoo.es> References: <20120205.143400.416428493.Takaaki.Ota@am.sony.com> <20120205.161623.484163522.Takaaki.Ota@am.sony.com> <83zkcwbo7t.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328505988 5456 80.91.229.3 (6 Feb 2012 05:26:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 05:26:28 +0000 (UTC) Cc: lekktu@gmail.com, "Ota, Takaaki" , 10733@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 06:26:27 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 1RuH5p-0004mz-0u for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 06:26:21 +0100 Original-Received: from localhost ([::1]:56112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuH5o-0000zZ-Dc for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 00:26:20 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuH5k-0000vP-SR for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 00:26:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuH5j-00007Q-E6 for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 00:26:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuH5j-00007M-2B for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 00:26:15 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuH6U-0003Wg-8t for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 00:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Feb 2012 05:27: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.132850599013516 (code B ref 10733); Mon, 06 Feb 2012 05:27:02 +0000 Original-Received: (at 10733) by debbugs.gnu.org; 6 Feb 2012 05:26:30 +0000 Original-Received: from localhost ([127.0.0.1]:56146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuH5x-0003Vx-Kg for submit@debbugs.gnu.org; Mon, 06 Feb 2012 00:26:30 -0500 Original-Received: from impaqm5.telefonica.net ([213.4.138.21]:45356 helo=telefonica.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuH5s-0003Vk-Rw for 10733@debbugs.gnu.org; Mon, 06 Feb 2012 00:26:27 -0500 Original-Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm5.telefonica.net with bizsmtp id WVGm1i0192iL0W23RVRaof; Mon, 06 Feb 2012 06:25:34 +0100 Original-Received: from qcore ([88.11.106.32]) by IMPmailhost4.adm.correo with BIZ IMP id WVRY1i00E0hxhHC1kVRZKr; Mon, 06 Feb 2012 06:25:34 +0100 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net In-Reply-To: <83zkcwbo7t.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 Feb 2012 06:05:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) 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:56546 Archived-At: Eli Zaretskii writes: [snip] > Emacs on Windows doesn't support symlinks; they are new with Vista and > Windows 7. Someone needs to write the code to support that, before > this can be considered a bug (as opposed to a feature request). > > What you describe seems to indicate that insert-file-contents only > reads the first 64KB portion of the file, and then bails out. Running > Emacs under debugger and reporting where it bails out of the reading > loop might help coming up with some band-aid solution. But full > support of symlink requires specific support code, that just isn't > there at this time. NTFS symlinks are transparent to applications. Emacs doesn't need to know that it is accessing a symlink to correctly read and save the file. I bet it is a bug on the CRT (the stat call that retrieves the file size, to be precise). Maybe it is a MinGW thing. It would be interesting to hear reports from people using an Emacs compiled with a modern version of Visual Studio, or even know if people using the most recent MinGW CRT release can duplicate the problem. This is a very serious bug (potential data loss). I'll put this on my TODO list and hopefully run a debug session on a Windows 7 machine next week. Meanwhile, if anyone can provide the info mentioned on the previous paragraph, it would be helpful.