X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=vECOUk0897wej0mx155YI2da+hISe4+A7ZPZVCbIA1IzgDbuJ0A0o bLqN8lPQVAgjgGyhjq88D83pxb7/QgCDg4YR+RJzAD7UI2Q+eZVBwtWKDaaYMqQP Jm9J1MyhyuXZ8KulIXMicXdLPG2mt5zejulMaAhN/zSlLn78eoJVEc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=qxvPLxu/T9Mo04XoLnqBn0xZULc=; b=d+HjLItoW7nr47beZYs/taI27eQu QwXYCGeQcFdpMyV3X7ny7LWXczYvxxBY6S+ylMGEPqnSxOtVGlT+WQqtt4fSfZ7m YxwvVOMQfaXigxxfP3hfd1gpjkjngtuGkjDa+bFLMj2nEAXWfG62FLJnSp5OQRS7 /RgqALAiLKzVsss= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19RgxYGPyvshCBODyiBEdF8 Date: Thu, 20 Jun 2013 01:47:15 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Bug with Cygwin's 'quilt' is actually in 'patch' Message-ID: <20130620054715.GC5122@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <51BFEB6E DOT 2040404 AT codespunk DOT com> <51BFF1F9 DOT 4040205 AT codespunk DOT com> <51C277A4 DOT 20709 AT codespunk DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51C277A4.20709@codespunk.com> User-Agent: Mutt/1.5.20 (2009-06-14) On Wed, Jun 19, 2013 at 11:31:48PM -0400, Matt D. wrote: >I've been looking further into this and it appears as though the problem >is in 'patch' not 'quilt'. quilt is actually a collection of bash >scripts and calls patch to do the actual patching. > >Using the same example I provided earlier in the thread, the same error >occurs when calling patch directly: > >$ patch Imakefile patches/test.patch > >Running dos2unix on test.patch will allow the patch to apply >successfully. However, this is WRONG. Imakefile and the initially >created test.patch both use CRLF line endings. The patch should >definitely NOT apply by introducing actual disparity. > >To summarize, the patch to Imakefile (CRLF) will apply if it is >converted to LF line endings. Using the '--binary' switch seems to be a >workaround for this issue. Sorry but we're emulating Linux here. You shouldn't have CRLF endings on your text file if you want the tools to work reliably. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple