RFA: Ignore DOS end-of-line characters (ctrl-Z) unless -W
Zack Weinberg
zack@codesourcery.com
Wed May 8 08:59:00 GMT 2002
On Wed, May 08, 2002 at 05:09:20PM +0300, Eli Zaretskii wrote:
>
> 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.
With or without truncating the input file?
Is ^Z to be honored wherever it appears, or only immediately after a
newline sequence?
> > It reads in binary mode.
>
> I hope only when the input comes from a file, not from a terminal.
It makes no distinction. What goes wrong when one reads from a
terminal in binary mode under DOS?
(I'm not sure how to open a file in text mode using open(),
incidentally)
zw
More information about the Gcc-patches
mailing list