This is the mail archive of the cygwin@sources.redhat.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]

RE: bison having ^M problems?


> From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
> 
> --- Charles Wilson <cwilson@ece.gatech.edu> wrote:
> > > You have
> > > > TEMP = `/cygdrive/c/TEMP'
> > > and
> > > > HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
> > > >   (default) = `/cygdrive'
> > > >   cygdrive flags = 0x00000020
> > > indicates that your /cygdrive pseudo mount is set to text 
> mode while
> > > > C:\progfile\Cygwin\bin  /usr/bin  system  binmode
> > > > C:\progfile\Cygwin\lib  /usr/lib  system  binmode
> > > > C:\progfile\Cygwin  /        system  binmode
> > > are set to binary mode.
> > > 
> > > To resolve this, change the /cygdrive pseudo mount to 
> binary mode.  Hint:
> > > `mount --help'.
> > > 

     This helps - a little.  The text for 'mount --help' describes some
ways to modify cygdrive, but could have stood a little more text.  I
had to guess, and wound up with:

$mount -b -s --change-cygdrive-prefix /cygdrive

    ...which changed my cygdrive flags to 0x00000022.  Does this mean
binary mode? 'mount --show-cygdrive-prefix' doesn't report flags (is
this a bug?).

> > 
> > Good call.  This should be a FAQ -- or perhaps setup should set
> > cygdrive's mount mode to binary when 'Binary' is selected for other
> > mounts?
> > 

    I vote for FAQ, whether or not setup gets changed, and I'm not sure
that it should be changed.  Consider someone who likes the /cygdrive
naming scheme, uses binary mode for almost everything, and only uses
mount to mount drives in text mode.  If setup were to interpret the
mode flags, it would interpret incorrectly for such a user, who would
have to reset the mount structure after every upgrade.  Also, you might
want to include the info on how to interpret the cygdrive flags in the
FAQ.


/|/|ike

> 
> It's the first thing I look for nowadays when the problem is 
> related to \r\n. 
> We've taken care of most of the problems, yet this still 
> remains.  Yes, setup
> should change as you've described.
> 
> Cheers,
> 
> =====
> Earnie Boyd
> mailto:earnie_boyd@yahoo.com
> 
> ---         <http://earniesystems.safeshopper.com>         ---
> --- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
> ---   Minimalist GNU for Windows <http://www.mingw.org/>   ---
> 


__________________________________________________
Do You Yahoo!?
From homework help to love advice, Yahoo! Experts has your answer.
http://experts.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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