www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/01/10:15:12

Date: Mon, 1 May 2000 19:12:45 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Gawk problems (text mode read/writes in DOS)
In-Reply-To: <ek1rgsocof7niu2t8flkc1d1tuk9ti3chi@4ax.com>
Message-ID: <Pine.SUN.3.91.1000501190650.11979E-100000@is>
MIME-Version: 1.0
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019