delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/14/14:16:34

From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson)
Subject: text-vs-binary yet again
14 Mar 1998 14:16:34 -0800 :
Message-ID: <19980312142706.07929.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU>
References: <19980310124308 DOT 20991 DOT qmail AT hotmail DOT com>
Mime-Version: 1.0
To: Earnie Boyd <earnie_boyd AT hotmail DOT com>
Cc: gnu-win32 AT cygnus DOT com

On 10-Mar-1998, Earnie Boyd <earnie_boyd AT hotmail DOT com> wrote:
> 
> As an aside, I don't know how you are going to use cygwin32 but if you 
> plan to port any UNIX code you will need to modify your mounts to be 
> text=binary.  Check out the archives and FAQ for this.

No, you don't need to modify your mounts to be text=binary.

The other alternative is to fix any places where the source code
of whatever it is you're porting opens binary files without specifying
"b"/O_BINARY in the fopen/open flags, and to fix any places where
the source code makes assumptions about the representation of text
files.

This alternative is a little more work, but the resulting programs
will be able to interoperate with native Windows programs much better.

-- 
Fergus Henderson <fjh AT cs DOT mu DOT oz DOT au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3        |     -- the last words of T. S. Garp.
-
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