From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harald.Maier.BW@t-online.de Newsgroups: gmane.emacs.bugs Subject: Re: [h-e-w] Re: Possible bug in Emacs 21.3 Date: Sat, 29 Mar 2003 19:08:19 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3E856D09.6080900@wanadoo.fr> Reply-To: Harald Maier NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048961651 26526 80.91.224.249 (29 Mar 2003 18:14:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2003 18:14:11 +0000 (UTC) Cc: gnu-emacs-bug@prep.ai.mit.edu Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 19:14:04 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18zKpf-0006WO-00 for ; Sat, 29 Mar 2003 19:13:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18zKoe-0000WY-01 for gnu-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2003 13:12:28 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18zKm7-0007s0-00 for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2003 13:09:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18zKli-0006qV-00 for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2003 13:09:31 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 18zKle-0006d9-00 for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2003 13:09:22 -0500 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.10) id 18zKle-0001EP-00 for gnu-emacs-bug@prep.ai.mit.edu; Sat, 29 Mar 2003 13:09:22 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18zKlS-0005vx-00 for gnu-emacs-bug@prep.ai.mit.edu; Sat, 29 Mar 2003 13:09:15 -0500 Original-Received: from mailout10.sul.t-online.com ([194.25.134.21]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18zKl9-0004iP-00 for gnu-emacs-bug@prep.ai.mit.edu; Sat, 29 Mar 2003 13:08:51 -0500 Original-Received: from fwd10.sul.t-online.de by mailout10.sul.t-online.com with smtp id 18zKkt-0001cW-02; Sat, 29 Mar 2003 19:08:35 +0100 Original-Received: from HESTIA (320041125923-0001@[217.230.80.238]) by fwd10.sul.t-online.com with esmtp id 18zKkf-1qByDYC; Sat, 29 Mar 2003 19:08:21 +0100 Original-To: David Ponce Original-Lines: 87 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3 (i386-mingw-nt5.0.2195) X-Sender: 320041125923-0001@t-dialin.net Original-cc: cygwin@cygwin.com Original-cc: help-emacs-windows@gnu.org Original-cc: PeterM@resmed.com.au X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4665 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4665 Hello David, I tried your patch below with emacs-21.3 and emacs cvs head and it works very fine with gcc 3.2 and the latest cygwin release. So hopefully the patch is soon included into cvs. Thanks for your fast reply. Harald David Ponce writes: > Harald.Maier.BW@t-online.de wrote: > >> "Peter Milliken" writes: >> >>>I have downloaded the source of 21.3 and built it on a PC running Win2000 >>>and using the Cygwin distribution and following the INSTALL instructions in >>>emacs-21.3/nt/INSTALL (well, I ran "configure.bat --prefix=/c/emacs" and >>>then type "make install" as I have done for all other source distributions >>>:-)) >>> >>>The resulting binary falls over with a "Abort, Retry or Ignore" dialog when >>>any package referenced from my .emacs that attempts to "require" the cl.el >>>package. >>> >>>Just typing M-: (require 'cl) from within the Emacs session will bring up >>>the problem. >> ----------------------------------+----------------- >> gcc 2.95.3-10 (cygwin special) | fails with cl.el >> gcc 3.2 20020927 (prerelease) | fails with cl.el >> gcc 2.95.3-6 (mingw special) | okay >> msvc | okay > Maybe are you using the mingw runtime 2.3 or 2.4? > There is a compatibility problem between that runtime and Emacs, > because of change in the way it handles binary vs. text IO mode. > > Notice that the development version (in CVS) is affected too. > > The following patch (discussed in the emacs-devel ML) fixed that > problem for me. > > *** emacs.c.ori Thu Aug 29 21:27:07 2002 > --- emacs.c Thu Mar 27 16:29:58 2003 > *************** > *** 40,45 **** > --- 40,49 ---- > #include > #endif > > + #ifdef WINDOWSNT > + #include > + #endif > + > #include "lisp.h" > #include "commands.h" > #include "intervals.h" > *************** > *** 874,884 **** > uninterrupt_malloc (); > #endif /* not SYSTEM_MALLOC */ > > ! #ifdef MSDOS > /* We do all file input/output as binary files. When we need to translate > newlines, we do that manually. */ > _fmode = O_BINARY; > > #if __DJGPP__ >= 2 > if (!isatty (fileno (stdin))) > setmode (fileno (stdin), O_BINARY); > --- 878,890 ---- > uninterrupt_malloc (); > #endif /* not SYSTEM_MALLOC */ > > ! #if defined (MSDOS) || defined (WINDOWSNT) > /* We do all file input/output as binary files. When we need to translate > newlines, we do that manually. */ > _fmode = O_BINARY; > + #endif /* MSDOS || WINDOWSNT */ > > + #ifdef MSDOS > #if __DJGPP__ >= 2 > if (!isatty (fileno (stdin))) > setmode (fileno (stdin), O_BINARY);