Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 10:47:52 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: cp (coreutils) 5.2.1 Corrupts Binary File Message-ID: <20050302094752.GL18314@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <200503020847 DOT j228lR6v007623 AT mail4 DOT magma DOT ca> <20050302085754 DOT GA28084 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i On Mar 2 09:11, Vincent Rowley wrote: > Corinna Vinschen cygwin.com> writes: > > On Mar 2 03:52, Vincent Rowley wrote: > > > peugeot[/cygdrive/c/WINDOWS/system32]> cp notepad.exe notepad_copy.exe > > > peugeot[/cygdrive/c/WINDOWS/system32]> diff notepad.exe notepad_copy.exe > > > Files notepad.exe and notepad_copy.exe differ > > > > I just tried it on binmode and textmode mounts and in all combinations > > from binmode to textmoe and vice versa. In no case I could reproduce > > your above observation. > > > > Are you sure you ran Cygwin's cp and diff? > > Yes I am. And I did it again using the full path to the executable > (c:/apps/cygwin being my Cygwin installation directory). > > peugeot[/cygdrive/c/WINDOWS/system32]> c:/apps/cygwin/bin/cp notepad.exe > notepad_copy.exe > peugeot[/cygdrive/c/WINDOWS/system32]> c:/apps/cygwin/bin/diff notepad.exe > notepad_copy.exe > Files notepad.exe and notepad_copy.exe differ Can you please check the files using cmp? > Do you think it has to do with the fact that I installed Cygwin to use files > in DOS mode (in one of the first tab of the Setup.exe application)? You're using textmode mounts (I'd never do this voluntarily but YMMV). As I wrote in my first reply, I tested to copy between all combinations of binmode mounts and textmode mounts and the copy was in all cases identical to the original. > Have you found anything suspect in my cygcheck log? No, unfortunately not. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/