delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: | Fri, 7 Mar 2003 10:04:27 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Patch 2.5.8: Problem patching dos text files |
Message-ID: | <20030307090427.GX1193@cygbert.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <5D826DAB4036C24EB1BA83C8907172AB0139430A AT usilms23 DOT ca DOT com> |
Mime-Version: | 1.0 |
In-Reply-To: | <5D826DAB4036C24EB1BA83C8907172AB0139430A@usilms23.ca.com> |
User-Agent: | Mutt/1.4i |
On Thu, Mar 06, 2003 at 09:45:12PM -0500, Dao, Giathang wrote: > Hi, > > I'm trying to apply a diff patch to a tree of files containing binaries and windows text files. > The binaries are patched correctly but the newlines in the text files are converted to unix newlines. > > How can I prevent cygwin's patch from converting dos or crlf newlines to unix newlines? You can't. Patch has no mechanism to determine the file type of the input file. It creates a patched result from two input files, both either text- or bimmode. The result is a binmode file in the temp dir. This is copied back to the original localtion. > I found a post dated 3+ years ago which describes the exact opposite behavior (his problem would have been my solution): > > http://sources.redhat.com/ml/cygwin/1998-11/msg00337.html That was a bug. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |