--- Andrej Borsenkow <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
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 [EMAIL PROTECTED]

Reply via email to