www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2000/11/20/20:40:37

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Message-ID: <20001121014021.4252.qmail@web123.yahoomail.com>
Date: Mon, 20 Nov 2000 17:40:21 -0800 (PST)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Re: New versions of bzip2 and patch?
To: Michael Ring <michael-ring AT t-online DOT de>, cygwin-apps AT cygwin DOT com
MIME-Version: 1.0

--- Michael Ring <michael-ring AT t-online DOT de> wrote:
> I only removed a stupid (imho) usage of environment-variables from patch
> which caused it to convert textfiles in binmounts to cr/lf files.
> automode.o sounds as if it were useable for patch but right now I think
> it should be kept as it is because it has prooven to work 'as is'.
> 

Patch is currently working correctly now, AFAICT.  Are there any know reasons
to apply patches to patch?

> Hmm... thinking about it agauin, what about this theory:
> 
> If I understand automode correctly a file on a textmount would be
> converted to a 'unix'-style file internally and if saved in binmode
> there would be no more cr/lf in the file; theory right ???
> 

Which in itself could present problems.  Let's see, diff file is on text mount
with \r\n line endings, and source is on a binary mount with \n line endings. 
Will not cause a problem currently or with automode.  If diff file is on binary
mount with \r\n line endings and source is on binary mount with \n line
endings.  Automode would correct this problem, while currently you would end up
with being unable to patch the file.  With diff file on binary mount and \r\n
line endings and source on text mount with \n line endings, currently the file
would patch and give you \r\n line endings in source while with automode you
would get \n line endings in the result.

Ok, automode would solve a problem with text files.  Does anyone use patch to
patch a binary file?  If so then --binary would need to be enabled for Cygwin,
which based on patch --help comments it isn't currently.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd AT yahoo DOT com

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

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

- Raw text -


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