delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/06/21:45:26

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
X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: Patch 2.5.8: Problem patching dos text files
Date: Thu, 6 Mar 2003 21:45:12 -0500
Message-ID: <5D826DAB4036C24EB1BA83C8907172AB0139430A@usilms23.ca.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Dao, Giathang" <Giathang DOT Dao AT ca DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 07 Mar 2003 02:45:13.0368 (UTC) FILETIME=[93D8E980:01C2E453]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h272jP520821

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?

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

but unfortunately mounting everything in either binmode and textmode did not work.

Any help or suggestions to alternatives would be greatly appreciated.

Thanks in advance,
-+Giathang

--
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/

- Raw text -


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