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: Re: Where is patch? Date: Wed, 14 Dec 2005 21:28:54 +0100 Message-ID: <43A08086.3010405@student.lu.se> References: <43A064AD.4050604@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: 8bit X-Trace: sea.gmane.org 1134592884 3824 80.91.229.2 (14 Dec 2005 20:41:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2005 20:41:24 +0000 (UTC) Cc: cygwin@cygwin.com, Emacs Devel Original-X-From: cygwin-return-116183-goc-cygwin=m.gmane.org@cygwin.com Wed Dec 14 21:41:17 2005 Return-path: Original-Received: from sourceware.org ([209.132.176.174]) by ciao.gmane.org with smtp (Exim 4.43) id 1EmdPO-00014H-HR for goc-cygwin@gmane.org; Wed, 14 Dec 2005 21:39:30 +0100 Original-Received: (qmail 19134 invoked by alias); 14 Dec 2005 20:39:03 -0000 Original-Received: (qmail 19020 invoked by uid 22791); 14 Dec 2005 20:39:01 -0000 X-Spam-Check-By: sourceware.org Original-Received: from pne-smtpout2-sn2.hy.skanova.net (HELO pne-smtpout2-sn2.hy.skanova.net) (81.228.8.164) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 Dec 2005 20:38:57 +0000 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.069.1) id 43A0655A0000891A; Wed, 14 Dec 2005 21:28:54 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) Original-To: =?ISO-8859-1?Q?Ren=E9_Berber?= In-Reply-To: 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:72416 gmane.emacs.devel:47709 Archived-At: René Berber wrote: >Lennart Borgman wrote: > > > >>I am having trouble with patch. My Cygwin patch (and my GnuWin32 patch) >>says it is version 2.5.9. But where is the sources for this? I looked at >>ftp://ftp.gnu.org/gnu/patch and they only have version 2.5.4. How can >>that be? >> >> > >The latest GNU patch version compiles out of the box and it works better than >the one distributed with Cygwin. By "works better" I mean that Cygwin's patch >sometimes fail when GNU patch works perfect. > > That is interesting. However my problem is with line endings. It turned out that the file to patch has CR-LF line endings (which is ok) and the patch file had LF line endings. This surprised me, I did not notice it first. In my opinion it should not have had that. It came from Thunderbird on MS Windows and I just pasted into a new file in Emacs. Then Emacs made the decision to save the file with LF line endings. There are two things I would like here: *** For patch: I would like it to discover that the line ending type of the patch file and the file to patch differ. I would then like patch to convert the line endings in the patch read from the patch file to that kind used in the file to patch. (It should not change the patch file of course.) That would be enough to solve my problem. However I would like such functionality to go into the main patch distribution if possible. That would save work I hope. *** For Emacs: I would like the default on MS Windows to be CR-LF line endings. That would in my opinion be less surpricing for an MS Windows user.