From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#10733: 24.0.93; w32 file truncation Date: Mon, 6 Feb 2012 22:35:44 +0100 Message-ID: References: <83vcnjc1yj.fsf@gnu.org> <87r4y74zew.fsf@wanadoo.es> <83sjinbyez.fsf@gnu.org> <20120206.121953.215407921.Takaaki.Ota@am.sony.com> <83obtbbrak.fsf@gnu.org> <83liofbqe7.fsf@gnu.org> 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 1328564236 925 80.91.229.3 (6 Feb 2012 21:37:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 21:37:16 +0000 (UTC) Cc: ofv@wanadoo.es, lekktu@gmail.com, Takaaki.Ota@am.sony.com, 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 22:37:14 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 1RuWFO-0001cx-At for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 22:37:14 +0100 Original-Received: from localhost ([::1]:43409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuWFN-0006EO-UO for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 16:37:13 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuWFL-0006E6-5b for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 16:37:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuWFK-0002on-6M for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 16:37:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuWFK-0002oj-4q for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 16:37:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuWG9-0000pR-UW for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 16:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Feb 2012 21:38: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.13285642253038 (code B ref 10733); Mon, 06 Feb 2012 21:38:01 +0000 Original-Received: (at 10733) by debbugs.gnu.org; 6 Feb 2012 21:37:05 +0000 Original-Received: from localhost ([127.0.0.1]:57713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuWFF-0000mw-2o for submit@debbugs.gnu.org; Mon, 06 Feb 2012 16:37:05 -0500 Original-Received: from mail-lpp01m020-f172.google.com ([209.85.217.172]:33702) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuWFC-0000mT-KS for 10733@debbugs.gnu.org; Mon, 06 Feb 2012 16:37:03 -0500 Original-Received: by lbbgk8 with SMTP id gk8so1197911lbb.3 for <10733@debbugs.gnu.org>; Mon, 06 Feb 2012 13:36:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Gc+DWUx8ljWkaVH4KTFvuFUD1YyWq83T0oCzYtKwH7w=; b=FN5jPallABdh861gbhzvBWvvexitVVg/KLAuhNVLvl1I+K2wMYlH39guykvoE1QcxL sVCUeQW0bN5oeGMlg5EMNm7eY/j/RZBWPYYFnEfu72gI13LuzVSmisQ3xFOOUl0BQ/cd iyZvSPBqpkOhvqLDY7l25pEf1mr0v6Sy/WYSQ= Original-Received: by 10.112.40.101 with SMTP id w5mr5288962lbk.97.1328564164641; Mon, 06 Feb 2012 13:36:04 -0800 (PST) Original-Received: by 10.112.12.6 with HTTP; Mon, 6 Feb 2012 13:35:44 -0800 (PST) In-Reply-To: <83liofbqe7.fsf@gnu.org> 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:56601 Archived-At: On Mon, Feb 6, 2012 at 22:31, Eli Zaretskii wrote: >> From: Lennart Borgman >> Date: Mon, 6 Feb 2012 22:20:31 +0100 >> Cc: Takaaki.Ota@am.sony.com, ofv@wanadoo.es, lekktu@gmail.com, >> =C2=A0 =C2=A0 =C2=A0 10733@debbugs.gnu.org >> >> What worries me is the bypassing of MSVCRT. > > Why? =C2=A0What do you think `stat' in MSVCRT does? =C2=A0(You can find t= he > sources on the Internet.) =C2=A0It calls some of the same Win32 APIs, and > then fills `struct stat'. =C2=A0There''s nothing magic about that, and > nothing to be afraid of. Ok, I see. But what seems to have happened now is that changes in these calls that are implemented in MSVCRT are not mirrored in the Emacs reimplementation. (And we are aware that it is a bit serious.) >> I think that perhaps it is better to reimplement on top of that. > > You can't. =C2=A0To get the missing information you must go to lower-leve= l > APIs. Do you say that it would slow down the Emacs implementation to get this information with new calls (beside those potentially going through MSVCRT)? Then I agree.