unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: cygwin@cygwin.com, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Where is patch?
Date: Wed, 14 Dec 2005 21:28:54 +0100	[thread overview]
Message-ID: <43A08086.3010405@student.lu.se> (raw)
In-Reply-To: <dnpsv8$o2r$1@sea.gmane.org>

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.


  parent reply	other threads:[~2005-12-14 20:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <43A064AD.4050604@student.lu.se>
     [not found] ` <20051214192858.GM2399@calimero.vinschen.de>
     [not found]   ` <43A07425.70205@student.lu.se>
2005-12-14 20:04     ` Where is patch? - problems with patch.exe on w32 Lennart Borgman
2005-12-15  4:26       ` Eli Zaretskii
2005-12-15  8:19         ` Lennart Borgman
2005-12-15 19:26           ` Eli Zaretskii
2005-12-15 20:19             ` Lennart Borgman
2005-12-16  7:38               ` Eli Zaretskii
     [not found] ` <dnpsv8$o2r$1@sea.gmane.org>
2005-12-14 20:28   ` Lennart Borgman [this message]
2005-12-15  4:29     ` Where is patch? Eli Zaretskii
2005-12-14 20:47 Richard Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43A08086.3010405@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=cygwin@cygwin.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).