Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20001018140456.29220.qmail@web124.yahoomail.com> Date: Wed, 18 Oct 2000 07:04:56 -0700 (PDT) From: Earnie Boyd Subject: RE: [cgf: Re: rxvt SEGV (Win98, 1.1.5s/2000-10-08)] To: Andrej Borsenkow , Jonathan Kamens , cygwin AT sources DOT redhat DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Andrej Borsenkow wrote: > > > HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 > > > (default) = `/cygdrive' > > > cygdrive flags = 0x00000020 > > > > I notice that your /cygdrive variable is set to process in text mode (DOS > > sytle) line endings. > > > > I have exactly the same after clean Cygwin reinstall (removing all registry > entries). So, it must be default. > I was afraid of that. If you choose UNIX style line endings from setup, setup should modify the registry entry for /cygdrive to be binary processing also. > > > > The problem is that if you process files in and out of your home > > directory they > > will have \r\n line endings while all of the other devices have \n line > > endings. I assume from the fact that you have all mount points in > > binary mode > > that you really want to process all files in binary mode. To change the > > /cygdrive pseudo mount point to binary mode do `mount -s -b > > --change-cygdrive-prefix /cygdrive'. > > > > But then _all_ io from DOS devices will be in binary mode? IMHO that may > cause > other problems. > What problems do you forsee? Don't give me any fictious ones. I've processed with all binary mounts for a long time and haven't seen any problems. I have seen problems posted to this list because of this scenario though. > Do you mean to say, that the default for text vs binary is set by this > option? > Yes, choosing UNIX sets binary mounts, choosing DOS sets text mounts. > Actually, I think, defaults are correct. This way you get binary IO on > explicit mounts (when you now, that all files are in Unix format) and text IO > everywhere else. > We disagree. I have concrete reasons for setting /cygdrive to binary mode as can be exampled from the archives. The surprise factor alone is a good reason if your expecting to be processing in binary mode as Jonathan appeared to be from his environment. Cheers, ===== Earnie Boyd mailto:earnie_boyd AT yahoo DOT com --- --- --- Cygwin: POSIX on Windows --- --- Minimalist GNU for Windows --- __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com