> Date: Tue, 17 Jul 2007 17:39:03 +0800
> From: dragzhb@yahoo.com.cn
> To: mingw-msys@lists.sourceforge.net
> Subject: Re: [Mingw-msys] mingw-install-20060210 compile problems
>
>
> --- Keith Marshall
> <keithmarshall@users.sourceforge.net>写道:
>
> > On Tuesday 10 July 2007 04:25, haibin zhang wrote:
> > > Can we do opposite, compile gcc 3.4.X as MSYS
> > > development, so that can use gcc 3.4.X to compile
> > > m4-1.4.9
> >
> > That would be a major undertaking, which is why we
> > still use gcc-2.95.3
> > as our MSYS build compiler.
> >
> > > do you know how to compile gcc 3.4.X defaults to
> > > binary, with LF only line endings ?
> >
> > You need to set _fmode to O_BINARY before opening
> > any I/O streams, and
> > you must also call _setmode for each of the
> > pre-opened standard I/O
> > streams. You can easily do this early in the main
> > function, for any
> > application which you want to exhibit this
> > behaviour; I guess that it
> > would be fairly trivial to modify the runtime
> > startup module, to make
> > this the default. However, if it was this simple,
> > we would already
> > have done it a long time ago; there are much more
> > significant changes
> > required, to create an MSYS development suite.
> >
>
> I have found this information in msys.bat
> =================================================
> rem ChangeLog:
> rem 2002.03.07 Earnie Boyd
> mailto:earnie@users.sf.net
> rem * Change the binmode setting to nobinmode.
>
> rem 2002.03.13 Earnie Boyd
> mailto:earnie@users.sf.net
> rem * Revert the nobinmode change.
> =================================================
>
> Can we change nobinmode to binmode as default , like
> cygwin ,so that many unix program(include m4-1.4.9)
> can run directly in MSYS?
>
> Regards
>
> Zhang HaiBin

Binary mode is already the default for programs that use msys-1.0.dll, and that is what the comments say. On the 7th MSYS was set to nobinmode, and on the 13th this change was reverted, therefore MSYS is now set to binmode. Of course, none of this is relevant for programs built with MinGW, unless you use msysDVLPR.
 
Luke