From: *jeffdb AT netzone DOT nospam DOT com (Mikey) Subject: Re: The DOS CR/LF thing? 24 Jun 1997 12:45:11 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <33b1081c.5378644.cygnus.gnu-win32@smtp.netzone.com> References: <3 DOT 0 DOT 1 DOT 32 DOT 19970624094526 DOT 0095a740 AT mailhost DOT speedsim DOT qcktrn DOT com> Reply-To: *jeffdb AT netzone DOT nospam DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Original-To: Gill Watt , gnu-win32 AT cygnus DOT com In-Reply-To: <3.0.1.32.19970624094526.0095a740@mailhost.speedsim.qcktrn.com> X-Mailer: Forte Agent 1.01/32.397 Original-Sender: owner-gnu-win32 AT cygnus DOT com The FAQ and readme need a little bit of an update ;^) Open &Start menu &Run and type in regedit open &edit &find cygnus left arrow until you see 00 01 etc. select each of these keys in the left pane double click fbinary in the right pane and change 0 to 1 in the popup actually you only need to change the last 5 mounts with regedit, other drives can be changed by (for example) umount f:\\;mount -b f:\\ /f at the bash prompt after you change over to binary mode, you will need to reinstall from cdk.exe and user.exe, and change any sources or headers that you previously untarred from CR\LF to LF one way to do this for an entire directory is for file in *;do cat $file|tr -d "\r\032" > t;mv t $file;done this gets rid of ^Z as well as CR from the fixed files. On Tue, 24 Jun 1997 09:45:26 -0400, you wrote: > >>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". > - 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".