X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Wed, 8 May 2002 08:33:38 -0700 To: Eli Zaretskii Cc: Andris Pavenis , Nick Clifton , djgpp-workers AT delorie DOT com, gcc-patches AT gcc DOT gnu DOT org Subject: Re: RFA: Ignore DOS end-of-line characters (ctrl-Z) unless -W Message-ID: <20020508153338.GE20829@codesourcery.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i From: Zack Weinberg Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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