Mail Archives: djgpp/2000/05/01/10:15:12
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 -