delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/06/24/07:12:49

From: gwatt AT quickturn DOT com (Gill Watt)
Subject: The DOS CR/LF thing?
24 Jun 1997 07:12:49 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <3.0.1.32.19970624094526.0095a740.cygnus.gnu-win32@mailhost.speedsim.qcktrn.com>
Mime-Version: 1.0
X-Sender: gwatt AT mailhost DOT speedsim DOT qcktrn DOT com
X-Mailer: Windows Eudora Light Version 3.0.1 (32)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

From the GNU win32 FAQ:

> How is the DOS/Unix CR/LF thing handled?

> By default, tools that deal with binaries (e.g. objdump) operate in 
> unix binary mode and tools that deal with text files (e.g. bash) 
> operate in text mode. 

> You can enable the DOS CR/LF end of line in a text file mode by setting 
> fmode_binary setting in the registry to 0. I've tried to keep the file 
> types 'natural'. By default a file is opened in text mode. This can be 
> changed by adding O_BINARY to the second argument of an open call, or 
> "b" to second argument of an fopen call. 

> lseek now only works in binary mode. 

Can someone please provide with more information about "setting fmode_binary 
in the registry to 0"?  I've looked in a lot of places and haven't found
a reference to it anywhere except in the FAQ.

Thank you very much for your help.

-Gill


-
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