This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC: line endings and specs parser


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]