This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Patch 2.5.8: Problem patching dos text files
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 7 Mar 2003 10:04:27 +0100
- Subject: Re: Patch 2.5.8: Problem patching dos text files
- References: <5D826DAB4036C24EB1BA83C8907172AB0139430A@usilms23.ca.com>
- Reply-to: cygwin at cygwin dot com
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/