From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.os.cygwin,gmane.emacs.devel Subject: Patch and Cygwin Date: Fri, 16 Dec 2005 01:07:30 +0100 Message-ID: <43A20542.1050405@student.lu.se> References: <43A1ACC1.9090805@student.lu.se> <43A1B2A1.2020907@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134691716 12862 80.91.229.2 (16 Dec 2005 00:08:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2005 00:08:36 +0000 (UTC) Cc: cygwin@cygwin.com, Emacs Devel , Eli Zaretskii Original-X-From: cygwin-return-116265-goc-cygwin=m.gmane.org@cygwin.com Fri Dec 16 01:08:34 2005 Return-path: Original-Received: from sourceware.org ([209.132.176.174]) by ciao.gmane.org with smtp (Exim 4.43) id 1En38O-000575-Rn for goc-cygwin@gmane.org; Fri, 16 Dec 2005 01:07:41 +0100 Original-Received: (qmail 20286 invoked by alias); 16 Dec 2005 00:07:35 -0000 Original-Received: (qmail 20276 invoked by uid 22791); 16 Dec 2005 00:07:35 -0000 X-Spam-Check-By: sourceware.org Original-Received: from pne-smtpout2-sn1.fre.skanova.net (HELO pne-smtpout2-sn1.fre.skanova.net) (81.228.11.159) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 16 Dec 2005 00:07:34 +0000 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.069.1) id 43A1777B0002B161; Fri, 16 Dec 2005 01:07:31 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) Original-To: Dave Korn In-Reply-To: <43A1B2A1.2020907@student.lu.se> X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Xref: news.gmane.org gmane.os.cygwin:72498 gmane.emacs.devel:47831 Archived-At: This is a summary of my tests with Cygwin patch and different line ending styles. (Only LF and CRLF are tested here.) I have downloaded patch 2.5.9 from ftp://alpha.gnu.org/gnu/diffutils/patch-2.5.9.tar.gz and compiled it using Cygwin. I have used this patch and the patch that currently comes with Cygwin to do some tests of patch and diff when the files to compare and patch have different line ending styles. I have also made this test using MSYS and GnuWin32 utilities. The result is that the only option that seems to be able to handle the mix of line endings is Cygwin using DOS line endings with patch 2.5.9. (The only thing that did not work was preservation of line endings in the patched file, but that seems to be a small problem here.) To see more of the result see here: http://ourcomments.org/GNU/patchcrlf/readme.txt Lennart Borgman wrote: > After finishing the installation of gcc-core (which includes binutils > as far as I understand) configure + make ran fine. I have now patch > 2.5.9 compiled for Cygwin I believe. Or? > > My intention was to look at the source code and see how it handles > line endings. I do not know if that is realistic though. As I said > before what I want it to do is: > > 1) Keep the line end style for the patched file. > > 2) Read the patch file and apply it even if it uses a different line > end style. > > This is simply what I expect of a text oriented tool. Comments and > help are welcome! (But please no holy war on line end style. That is > just improductive.)