The DOS CR/LF thing?

Gill Watt gwatt@quickturn.com
Tue Jun 24 06:46:00 GMT 1997


>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@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list