Date: Mon, 1 May 2000 19:12:45 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Gawk problems (text mode read/writes in DOS) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 1 May 2000, Damian Yerrick wrote: > >I'm not sure if it's possible to solve this in a way that doesn't > >break more important features, so it would be nice if you could > >suggest possible solutions for these problems, together with your > >report. > > A switch to open files in binary mode? The possibility to do that depends on how well do you know which files need to be open in binary mode and which in text mode, in the function which actually opens them. In a program as complex as Gawk, this is not easy, because typically the function which opens files is at a very low level, and it doesn't know enough about the purpose of the file that is about to be opened. Incidentally, there's a thread going on in gnu.utils.bug where I explained some of the subtle aspects related to these issues (not specifically about Gawk and this problem). You might consider reading that thread.