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 17:16:52 +0100 Message-ID: <87zkcw3pjf.fsf@wanadoo.es> References: <20120205.143400.416428493.Takaaki.Ota@am.sony.com> <20120205.161623.484163522.Takaaki.Ota@am.sony.com> <83zkcwbo7t.fsf@gnu.org> <874nv45y9f.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328545112 4010 80.91.229.3 (6 Feb 2012 16:18:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 16:18:32 +0000 (UTC) Cc: lekktu@gmail.com, "Ota, Takaaki" To: 10733@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 17:18:30 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 1RuRGv-0002EE-HO for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 17:18:29 +0100 Original-Received: from localhost ([::1]:58324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuRGr-00043T-J5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 11:18:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuRGj-000408-WA for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 11:18:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuRGd-0000N8-KL for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 11:18:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuRGd-0000N1-Im for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 11:18:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuRHS-0001e6-0H for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 11:19: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 16:19:01 +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.13285450926263 (code B ref 10733); Mon, 06 Feb 2012 16:19:01 +0000 Original-Received: (at 10733) by debbugs.gnu.org; 6 Feb 2012 16:18:12 +0000 Original-Received: from localhost ([127.0.0.1]:57382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuRGa-0001cs-7G for submit@debbugs.gnu.org; Mon, 06 Feb 2012 11:18:12 -0500 Original-Received: from impaqm1.telefonica.net ([213.4.138.17]:49189 helo=telefonica.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuRGT-0001cJ-Tk for 10733@debbugs.gnu.org; Mon, 06 Feb 2012 11:18:06 -0500 Original-Received: from IMPmailhost3.adm.correo ([10.20.102.124]) by IMPaqm1.telefonica.net with bizsmtp id WgGq1i01T2h2L9m3MgGuna; Mon, 06 Feb 2012 17:16:54 +0100 Original-Received: from qcore ([88.11.106.32]) by IMPmailhost3.adm.correo with BIZ IMP id WgGs1i01P0hxhHC1jgGtpi; Mon, 06 Feb 2012 17:16:54 +0100 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net In-Reply-To: <874nv45y9f.fsf@wanadoo.es> ("=?UTF-8?Q?=C3=93scar?= Fuentes"'s message of "Mon, 06 Feb 2012 06:25:32 +0100") 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:56570 Archived-At: =C3=93scar Fuentes writes: > 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. No, it is an Emacs thing. `stat' is defined in lib-src/ntlib.c, overriding the MSVCRT implementation, which accounts for symlinks, while Emacs' does not. Before the definition of `stat' on lib-src/ntlib.c there is this comment: /* We need this because nt/inc/sys/stat.h defines struct stat that is incompatible with the MS run-time libraries. */ That looks like an understatement. Actually, we need our own stat function and struct because the `struct stat' that Emacs uses is incompatible with the one defined in MSVCRT, right? The obvious fix does not seem difficult, although ugly and verbose. OTOH, I'll like to remove the Emacs reimplementation of `stat', but that looks more cumbersome. How much time we have until the release? BTW, the obvious fix may require some care for not breaking Emacs support on MS Windows versions prior to XP. We still support Windows 9x, don't we?