This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

The DOS CR/LF thing?



>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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]