delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/08/19:59:13

From: joe AT jump DOT com (Joe Peterson)
Subject: Bug in od, cat, etc reading binary files
8 Sep 1997 19:59:13 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <34146C3B.683BC2FC.cygnus.gnu-win32@jump.com>
Mime-Version: 1.0
X-Mailer: Mozilla 4.02 [en] (WinNT; I)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Sorry if this is documented somewhere, but I could not find mention of
it.  I find that when, for example, using "od" to look at a binary file,
if a ctrl-Z is encountered, the reading stops.  This is because the
fopen presumably does a "r" rather than a "rb" (a pc-ism).

Other programs like "cat" and possibly others have this problem as
well...

				Joe
-
For help on using this list (especially unsubscribing), 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