| delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Gawk problems (text mode read/writes in DOS) |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <ek1rgsocof7niu2t8flkc1d1tuk9ti3chi@4ax.com> |
| References: | <39081E84 DOT 503537B9 AT clara DOT net> <200004272014 DOT QAA25525 AT indy DOT delorie DOT com> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| Lines: | 30 |
| X-Trace: | /ba9QdE4zErSaldNtSfw6ak5LOc48VRFg5pdoR2HOiPqCQiQa2AFkEC/XNec6uNUdFgxArUQHlPm!gA0g9q82nbkoFiMEXx+yszBGOy8iF+IN4hRNvXt/UG561/2/ztDdFtqOUVdfUiWwlwWT92GUf6Sk!mJUilg== |
| X-Complaints-To: | abuse AT gte DOT net |
| X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
| X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
| NNTP-Posting-Date: | Mon, 01 May 2000 13:29:34 GMT |
| Distribution: | world |
| Date: | Mon, 01 May 2000 13:29:34 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Thu, 27 Apr 2000 16:14:20 -0400 (EDT), Eli Zaretskii
<eliz AT delorie DOT com> wrote:
>Clive Jenkins <clive DOT jenkins AT clara DOT net> wrote:
>
>> 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.
>
>[snip]
>
>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?
--
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |