delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/10/19/22:41:20

From: dcd AT TC DOT FLUKE DOT COM (David Dyck)
Subject: Re: using cat on binary files (CTRL-Z trauma)
19 Oct 1996 22:41:20 -0700 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <96Oct19.215011pdt.36050.cygnus.gnu-win32@gateway.fluke.com>
Mime-Version: 1.0
X-Sender: dcd AT jd
Original-To: root <root AT jacob DOT remcomp DOT fr>
Original-cc: John Cook <jcook AT mseng DOT kla DOT com>, gnu-win32 AT cygnus DOT com
In-Reply-To: <m0vEUNf-000ALAC@jacob.remcomp.fr>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

I know from experience, that MSDOS (>3.X, probably 5.x) still look
at ctrl-z in certain cases.

  I had a graphics screen dump program that failed
every now and the (it turned out to be when a ctrl-z)
was send in the binary graphics data to the printer.
I added a test to change each ctrl-z by a bit, and
the LPT/PRN driver started passing the data to the
printer again, and the screen dumps started working.

There may be other cases also like this.
  David Dyck

PS.  I tried several ways to set the printer to binary
mode, but I never got my program to do it.
If I printed to a file, and used
  COPY/B myfile.tmp LPT1:
then the ctrl-z would be passed to the printer correctly,
I just couldn't duplicate it in my own program.
(the /B flag to copy means copy in binary mode)


On Fri, 18 Oct 1996, root wrote:

> Date: Fri, 18 Oct 1996 22:55:31 -0700
> From: root <root AT jacob DOT remcomp DOT fr>
> To: John Cook <jcook AT mseng DOT kla DOT com>
> Cc: gnu-win32 AT cygnus DOT com
> Subject: Re: using cat on binary files (CTRL-Z trauma)
>
> >
> >
> >
> > When I try to cat a binary file, cat bails upon receiving
> > the first CTRL-Z byte.  CTRL-Z is the DOS end-of-file character
> > (right?)
>
> Wrong!
> DOS doesn't use the Ctrl-Z character since (at least) DOS 3.X
> i.e. several centuries ago in this rap=EEdly moving field! We are
> now in DOS Windows NT style, quite a change since
> C:>
>
>
>
> --
> Jacob Navia=09Logiciels/Informatique
> 41 rue Maurice Ravel=09=09=09Tel (1) 48.23.51.44
> 93430 Villetaneuse =09=09=09Fax (1) 48.23.95.39
> France
> -
> For help on using this list, send a message to
> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
>

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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