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>,
	  Eli Zaretskii <eliz@gnu.org>
Subject: Patch and Cygwin
Date: Fri, 16 Dec 2005 01:07:30 +0100	[thread overview]
Message-ID: <43A20542.1050405@student.lu.se> (raw)
In-Reply-To: <43A1B2A1.2020907@student.lu.se>

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.)




       reply	other threads:[~2005-12-16  0:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <SERRANOMu3QTYCrtU2b00000042@SERRANO.CAM.ARTIMI.COM>
     [not found] ` <43A1ACC1.9090805@student.lu.se>
     [not found]   ` <43A1B2A1.2020907@student.lu.se>
2005-12-16  0:07     ` Lennart Borgman [this message]
2005-12-16  8:18       ` Patch and Cygwin Eli Zaretskii
2005-12-16  8:35         ` Lennart Borgman
2005-12-16  8:45           ` Eli Zaretskii

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=43A20542.1050405@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=cygwin@cygwin.com \
    --cc=eliz@gnu.org \
    --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).