delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/02/12:19:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 2 Mar 2005 12:19:02 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: cp (coreutils) 5.2.1 Corrupts Binary File
In-Reply-To: <20050302122153.GQ18314@cygbert.vinschen.de>
Message-ID: <Pine.GSO.4.61.0503021209460.2585@slinky.cs.nyu.edu>
References: <200503020847 DOT j228lR6v007623 AT mail4 DOT magma DOT ca> <20050302085754 DOT GA28084 AT cygbert DOT vinschen DOT de> <loom DOT 20050302T100414-499 AT post DOT gmane DOT org> <20050302094752 DOT GL18314 AT cygbert DOT vinschen DOT de> <loom DOT 20050302T104906-403 AT post DOT gmane DOT org> <20050302100936 DOT GP18314 AT cygbert DOT vinschen DOT de> <loom DOT 20050302T111136-706 AT post DOT gmane DOT org> <20050302122153 DOT GQ18314 AT cygbert DOT vinschen DOT de>
MIME-Version: 1.0

On Wed, 2 Mar 2005, Corinna Vinschen wrote:

> On Mar  2 10:14, Vincent Rowley wrote:
> > Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> > > Oh, wait.  I see you're running coreutils-5.2.1-2.  That version might
> > > actually have textmode issues.  The current version is 5.2.1-5.  Could
> > > you please try if that solves your problem?
> >
> > I will try this in a couple of hours and let you know.
> >
> > By the way, would you recommend us to install Cygwin selecting the
> > Unix mode? If yes, how should we proceed since we have already
> > installed it in DOS mode? I was thinking that we should select DOS
> > since our non-Cygwin applications are Windows applications. Please let
> > me know what you think.
>
> I would always and everywhere suggest to install in binmode.  Textmode
> is an unfortunate idea which only results in problems.  We're keeping
> that for some sort of (probably misguided) backward compatibility.
> Personally I'd rather get rid of them.
>
> You don't have to reinstall everything when you change over to binmode,
> but you should be aware that some of your textfiles have to be
> converted! Tcsh for instance doesn't like \r\n in scripts.
>
> If you want to switch over to binmode, just umount all of your mount
> points and then re-mount them again using the -b option (but that's
> default anyway):
>
>   cd /bin
>   ./umount /
>   ./mount -f C:/apps/cygwin /
>   [etc]
>
> The /cygdrive mounts are changed by just calling `mount -c /cygdrive'.

Two more (probably easier) ways:
1) Run setup.exe and select "Unix line endings"; then select the "Keep"
mode (switch to the "Partial" view to make sure no packages will get
installed), and complete the installation.  The mounts will be switched.
2) From a bash prompt in /bin, run

PATH="$PATH:." eval "`mount -m | grep ' -t ' | sed 's/ -t / -b /'`"

(Google for "cygwin remount binary").
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019