unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Harald.Maier.BW@t-online.de
Cc: gnu-emacs-bug@prep.ai.mit.edu
Subject: Re: [h-e-w] Re: Possible bug in Emacs 21.3
Date: Sat, 29 Mar 2003 19:08:19 +0100	[thread overview]
Message-ID: <u3cl6f3l8.fsf__13364.693176891$1048961651@myself.com> (raw)
In-Reply-To: 3E856D09.6080900@wanadoo.fr


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 <david.ponce@wanadoo.fr> writes:

> Harald.Maier.BW@t-online.de wrote:
>
>> "Peter Milliken" <PeterM@resmed.com.au> 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 <sys/ioctl.h>
>    #endif
>
> + #ifdef WINDOWSNT
> + #include <fcntl.h>
> + #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);

      parent reply	other threads:[~2003-03-29 18:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3778.1048827715.21513.bug-gnu-emacs@gnu.org>
2003-03-29  7:19 ` Possible bug in Emacs 21.3 maierh
     [not found] ` <u3cl6r65h.fsf@myself.com>
     [not found]   ` <3E856D09.6080900@wanadoo.fr>
2003-03-29 18:08     ` Harald.Maier.BW [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='u3cl6f3l8.fsf__13364.693176891$1048961651@myself.com' \
    --to=harald.maier.bw@t-online.de \
    --cc=gnu-emacs-bug@prep.ai.mit.edu \
    --cc=maierh@myself.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).