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:[EMAIL PROTECTED]
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/

Reply via email to