This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: line endings and specs parser
- To: Zack Weinberg <zack at bitmover dot com>
- Subject: Re: RFC: line endings and specs parser
- From: Mumit Khan <khan at xraylith dot wisc dot EDU>
- Date: Mon, 09 Aug 1999 11:56:27 -0500
- cc: gcc at gcc dot gnu dot org
Zack Weinberg <zack@bitmover.com> writes:
>
> Whatever you do apparently has to handle \n\r as well as \r\n, \r, \n.
> See the lengthy discussion of this back in January:
> "cpp w/DOS line feeds" was the subject, and the first entry is
> http://www.cygnus.com/ml/egcs/1999-Jan/0783.html.
Thanks! I'd forgotten about '\n\r' sequence.
>
> What is the problem with using stdio to read the file?
>
It's just the way the specs parser is written. Besides, as Per Bothner
pointed out, even that won't guarantee the correct conversions.
Regards,
Mumit