This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Ignore DOS end-of-line characters (ctrl-Z) unless -W
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- To: Andris Pavenis <pavenis at latnet dot lv>
- Cc: Nick Clifton <nickc at cambridge dot redhat dot com>, djgpp-workers at delorie dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 May 2002 17:09:20 +0300 (IDT)
- Subject: Re: RFA: Ignore DOS end-of-line characters (ctrl-Z) unless -W
On Wed, 8 May 2002, Andris Pavenis wrote:
> Original message (and patch) was due to a different reason: use of source
> files originated from DOS under other systems (unfortunatelly read
> initial message not too carefully ...)
For other systems, I guess a warning under -W is okay.
> > Hmm, does this mean GCC reads files in binary mode? (If not, the library
> > will stop at the first ^Z, and GCC itself will never see any ^Zs.)
>
> It reads in binary mode.
I hope only when the input comes from a file, not from a terminal.