unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Patch and Cygwin
       [not found]   ` <43A1B2A1.2020907@student.lu.se>
@ 2005-12-16  0:07     ` Lennart Borgman
  2005-12-16  8:18       ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2005-12-16  0:07 UTC (permalink / raw)
  Cc: cygwin, Emacs Devel, Eli Zaretskii

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch and Cygwin
  2005-12-16  0:07     ` Patch and Cygwin Lennart Borgman
@ 2005-12-16  8:18       ` Eli Zaretskii
  2005-12-16  8:35         ` Lennart Borgman
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2005-12-16  8:18 UTC (permalink / raw)
  Cc: emacs-devel

> Date: Fri, 16 Dec 2005 01:07:30 +0100
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> CC: cygwin@cygwin.com, Emacs Devel <emacs-devel@gnu.org>, 
>  Eli Zaretskii <eliz@gnu.org>
> 
> 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.)

I think this is off-topic on emacs-devel, so I will post a meaningful
reply only to the other adressees.  Here I will only say that your
conclusions are wrong, and that your tests work for me with a variety
of other Diff/Patch combinations.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch and Cygwin
  2005-12-16  8:18       ` Eli Zaretskii
@ 2005-12-16  8:35         ` Lennart Borgman
  2005-12-16  8:45           ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2005-12-16  8:35 UTC (permalink / raw)
  Cc: emacs-devel

Eli Zaretskii wrote:

>>Date: Fri, 16 Dec 2005 01:07:30 +0100
>>From: Lennart Borgman <lennart.borgman.073@student.lu.se>
>>CC: cygwin@cygwin.com, Emacs Devel <emacs-devel@gnu.org>, 
>> Eli Zaretskii <eliz@gnu.org>
>>
>>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.)
>>    
>>
>
>I think this is off-topic on emacs-devel, so I will post a meaningful
>reply only to the other adressees.  Here I will only say that your
>conclusions are wrong, and that your tests work for me with a variety
>of other Diff/Patch combinations.
>  
>
Please do. I CC:ed you because I thought you had objections. If you give 
me other options I will add them to the tests. You may also suggest 
other tests.

But I do not think this is OT on the devel list, but the discussion 
around it is.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch and Cygwin
  2005-12-16  8:35         ` Lennart Borgman
@ 2005-12-16  8:45           ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2005-12-16  8:45 UTC (permalink / raw)
  Cc: emacs-devel

> Date: Fri, 16 Dec 2005 09:35:57 +0100
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> CC: emacs-devel@gnu.org
> 
> But I do not think this is OT on the devel list

Trust me: it _is_ off-topic.  There's nothing Emacs can do if you use
bad combinations of external utilities.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-16  8:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [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     ` Patch and Cygwin Lennart Borgman
2005-12-16  8:18       ` Eli Zaretskii
2005-12-16  8:35         ` Lennart Borgman
2005-12-16  8:45           ` Eli Zaretskii

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