RFC: line endings and specs parser
Mumit Khan
khan@xraylith.wisc.EDU
Tue Aug 31 23:20:00 GMT 1999
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
More information about the Gcc
mailing list