delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/07/09:12:53

From: swift AT world DOT std DOT com (Peter Lu)
Subject: re-configuring standard input to binary mode
7 Jul 1997 09:12:53 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33C10D80.53EF.cygnus.gnu-win32@world.std.com>
Mime-Version: 1.0
X-Mailer: Mozilla 3.0 (X11; I; HP-UX A.09.07 9000/777)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hi,

	How does one configure the standard input stream (fd = 0) to run in
binary mode?  The default mode seems to be text mode.

	I've tried to use fcntl() to no avail.  I've also tried tricks
like dup() and fdopen().

	Thanks for any help.

Peter Lu (swift AT world DOT std DOT com)
-
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