RFC: line endings and specs parser
Zack Weinberg
zack@bitmover.com
Sun Aug 8 22:50:00 GMT 1999
Mumit Khan wrote:
> Now that GCC is slowly but surely moving towards dealing with the various
> types of EOLs (thanks Zack!), what do folks think about fixing specs parser
> to do the same?
>
> The problem is that the gcc.c:read_specs() doesn't use stdio to read the
> file, so all the usual conversions don't happen.
[...]
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 .
What is the problem with using stdio to read the file?
zw
More information about the Gcc
mailing list