Date: Thu, 27 Apr 2000 16:14:20 -0400 (EDT) Message-Id: <200004272014.QAA25525@indy.delorie.com> From: Eli Zaretskii To: Clive Jenkins CC: djgpp AT delorie DOT com In-reply-to: <39081E84.503537B9@clara.net> (message from Clive Jenkins on Thu, 27 Apr 2000 12:03:33 +0100) Subject: Re: Gawk problems (text mode read/writes in DOS) References: <39081E84 DOT 503537B9 AT clara DOT net> 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 > Date: Thu, 27 Apr 2000 12:03:33 +0100 > From: Clive Jenkins > > 1. printf("%c",10) outputs two consecutive bytes, values 13, 10. All > values other than 10 are output verbatim. This is obviously replacing CR > with CR,LF. > 2. reading of an input file is terminated if an embedded ^Z (value 26) > is encountered. This is a hangover from very early versions of DOS. This is expected behavior: Gawk uses text-mode I/O, since it is mainly a text-processing tool. > Can anyone please tell me if I have missed something, otherwise I will > report these as bugs. You haven't miss anything. Please report this, if you feel this is a bug. 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.