From MAILER-DAEMON Sun Dec 16 16:52:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TkM8P-0001Vg-EG
	for mharc-bug-patch@gnu.org; Sun, 16 Dec 2012 16:52:33 -0500
Received: from eggs.gnu.org ([208.118.235.92]:58880)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <david.artzi@altair-semi.com>) id 1TkDi0-00073q-U7
	for bug-patch@gnu.org; Sun, 16 Dec 2012 07:52:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <david.artzi@altair-semi.com>) id 1TkDhy-0002Yx-FK
	for bug-patch@gnu.org; Sun, 16 Dec 2012 07:52:44 -0500
Received: from altgw.altair-semi.com ([82.166.199.42]:8065)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <david.artzi@altair-semi.com>) id 1TkDhx-0002Yn-RI
	for bug-patch@gnu.org; Sun, 16 Dec 2012 07:52:42 -0500
Received: from FOSTER.altair ([2002:5858:58e2::5858:58e2]) by foster.altair
	([2002:5858:58e2::5858:58e2]) with mapi id 14.01.0355.002;
	Sun, 16 Dec 2012 14:32:00 +0200
From: David Artzi <david.artzi@altair-semi.com>
To: "bug-patch@gnu.org" <bug-patch@gnu.org>
Thread-Topic: Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
Thread-Index: Ac3biVgQYWYOlpXXSSaZyNkHBi9+Hw==
Date: Sun, 16 Dec 2012 12:32:00 +0000
Message-ID: <05631F9E1D205545AE257AD60A87DB771BD2C173@foster.altair>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-originating-ip: [10.150.1.210]
Content-Type: multipart/mixed;
	boundary="_005_05631F9E1D205545AE257AD60A87DB771BD2C173fosteraltair_"
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8
X-Received-From: 82.166.199.42
X-Mailman-Approved-At: Sun, 16 Dec 2012 16:52:32 -0500
Subject: [bug-patch] Assertion failed: hunk, file ../patch-2.5.9-src/patch.c,
	line 354
X-BeenThere: bug-patch@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports, suggestions,
	general discussion for GNU patch." <bug-patch.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-patch>,
	<mailto:bug-patch-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-patch>
List-Post: <mailto:bug-patch@gnu.org>
List-Help: <mailto:bug-patch-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-patch>,
	<mailto:bug-patch-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Dec 2012 12:52:49 -0000

--_005_05631F9E1D205545AE257AD60A87DB771BD2C173fosteraltair_
Content-Type: multipart/alternative;
	boundary="_000_05631F9E1D205545AE257AD60A87DB771BD2C173fosteraltair_"

--_000_05631F9E1D205545AE257AD60A87DB771BD2C173fosteraltair_
Content-Type: text/plain; charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

Attached =96 original file, diff file, svn info:

URL: ------------------------CommonBuildDefines.opt
Repository Root: ----------------------
Repository UUID: --------------------------
Revision: 39301
Node Kind: file
Schedule: normal
Last Changed Author: -----------
Last Changed Rev: 35893
Last Changed Date: 2012-08-22 13:00:34 +0300 (??=A1Text Last Updated: 2012-=
12-16 14:25:43 +0200 (??=A1Checksum: 90b771dd2c681a902b3656
12c6617271

Didn=92t see anything special about this diff file to explain the issue, ot=
her than the following:

"\ No newline at end of file"

But editing the file (adding a new line at the end) and using a new appropr=
iate diff still resulted in a same error



________________________________

Important Notice: This transmission and any files attached to it, may conta=
in confidential and/or privileged information and is intended only for the =
named recipient. If you are not the intended recipient, you are hereby noti=
fied that any disclosure, reproduction, retransmission, dissemination, copy=
ing or any other use of the information or files contained is strictly proh=
ibited. If you have received this transmission in error, please notify the =
sender by reply transmission and delete this electronic mail

--_000_05631F9E1D205545AE257AD60A87DB771BD2C173fosteraltair_
Content-Type: text/html; charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dwindows-1=
255">
<style>
<!--
@font-face
	{font-family:"Cambria Math"}
@font-face
	{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline}
span.EmailStyle17
	{font-family:"Calibri","sans-serif";
	color:windowtext}
.MsoChpDefault
	{}
@page WordSection1
	{margin:72.0pt 90.0pt 72.0pt 90.0pt}
div.WordSection1
	{}
-->
</style>
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Attached =96 original file, diff file, svn info:</p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">URL: ------------------------CommonBuildDefines.opt<=
/p>
<p class=3D"MsoNormal">Repository Root: ----------------------</p>
<p class=3D"MsoNormal">Repository UUID: --------------------------</p>
<p class=3D"MsoNormal">Revision: 39301</p>
<p class=3D"MsoNormal">Node Kind: file</p>
<p class=3D"MsoNormal">Schedule: normal</p>
<p class=3D"MsoNormal">Last Changed Author: -----------</p>
<p class=3D"MsoNormal">Last Changed Rev: 35893</p>
<p class=3D"MsoNormal">Last Changed Date: 2012-08-22 13:00:34 &#43;0300 (??=
=A1Text Last Updated: 2012-12-16 14:25:43 &#43;0200 (??=A1Checksum: 90b771d=
d2c681a902b3656</p>
<p class=3D"MsoNormal">12c6617271</p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">Didn=92t see anything special about this diff file t=
o explain the issue, other than the following:</p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">&quot;\ No newline at end of file&quot;</p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">But editing the file (adding a new line at the end) =
and using a new appropriate diff still resulted in a same error</p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">&nbsp;</p>
</div>
<br>
<hr>
<p style=3D"font-size:9pt; color:gray; font-family:'Arial','Calibri','Cambr=
ia','garamond',serif">
<strong>Important Notice:</strong> This transmission and any files attached=
 to it, may contain confidential and/or privileged information and is inten=
ded only for the named recipient. If you are not the intended recipient, yo=
u are hereby notified that any disclosure,
 reproduction, retransmission, dissemination, copying or any other use of t=
he information or files contained is strictly prohibited. If you have recei=
ved this transmission in error, please notify the sender by reply transmiss=
ion and delete this electronic mail
</p>
</body>
</html>

--_000_05631F9E1D205545AE257AD60A87DB771BD2C173fosteraltair_--

--_005_05631F9E1D205545AE257AD60A87DB771BD2C173fosteraltair_
Content-Type: application/octet-stream; name="CommonBuildDefines.opt"
Content-Description: CommonBuildDefines.opt
Content-Disposition: attachment; filename="CommonBuildDefines.opt"; size=1447;
	creation-date="Sun, 16 Dec 2012 12:25:47 GMT";
	modification-date="Sun, 16 Dec 2012 12:25:43 GMT"
Content-Transfer-Encoding: base64

I0dlbmVyYWwKICAgICAgICAtREZXX0JJR19FTkRJQU4KIyAgICAgICAtRFBIWV9SVU5OSU5HX09O
X0FDQ0VMRVJBVE9SCgojIERlYnVnCiAgICAgICAgLUREQkdfQVNTRVJUX0ZMQUcKIyAgICAgICAt
RERCR19BU1NFUlRfU0ZfRkxBRyAgICAgICAgICAgICAgICAgICAgI2VuYWJsZSBkYmcgYXNzZXJ0
cyBpbiBzdWJmbG93cwojICAgICAgIC1EREJHX0FTU0VSVF9MRVZFTF8wX0ZMQUcKCiMgICAgICAg
LURERUJVR19TSUJfTE9HU19FTkFCTEVECiMgICAgICAgLURMVEVfREJHX0NGR19CQU5LX09WRVJG
TE9XX01PTklUT1JJTkcKIyAgICAgICAtRERCR19JUE5fTE9HU19XQl9BTkRfU0IKIyAgICAgICA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fVElNRV9MT0dfSU5URVJSVVBUX0dFTkVSQUwgICAgICAg
IyBQcmltYXJ5IGFuZCBTZWNvbmRhcnkgaW5uZXIgUk1BIGludGVycnVwdHMgTG9ncwojICAgICAg
IC1EUkVBTF9USU1FX0xPR19JTlRFUlJVUFQgICAgICAgICAgICAgICAjIFNXMC9TVzEvQUdDL1RJ
TUVSIExldmVsIDAgaW50ZXJydXB0cyBsb2dzCiAgICAgICAgLURSRUFMX1RJTUVfTE9HX0NBQ0hF
X0NPVU5URVJTICAgICAgICAgICMgZW5hYmxlcyBDYWNoZSBsb2cgb3V0cHV0IGNvZGUKIyAgICAg
ICAtRFRJTUVMSU5FX0xPR0dJTkcgIA==

--_005_05631F9E1D205545AE257AD60A87DB771BD2C173fosteraltair_
Content-Type: application/octet-stream; name="diff___Project.diff"
Content-Description: diff___Project.diff
Content-Disposition: attachment; filename="diff___Project.diff"; size=1293;
	creation-date="Sun, 16 Dec 2012 12:25:24 GMT";
	modification-date="Thu, 13 Dec 2012 19:59:12 GMT"
Content-Transfer-Encoding: base64

SW5kZXg6IFByb2plY3QvQ29tbW9uQnVpbGREZWZpbmVzLm9wdA0KPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIFBy
b2plY3QvQ29tbW9uQnVpbGREZWZpbmVzLm9wdAkocmV2aXNpb24gMzkzMDEpDQorKysgUHJvamVj
dC9Db21tb25CdWlsZERlZmluZXMub3B0CSh3b3JraW5nIGNvcHkpDQpAQCAtMjIsOCArMjIsOCBA
QA0KICMgICAgICAgLUROQlNfUkVBTF9USU1FX0RSQU1fVFJBQ0UKIAogIyAgICAgICAtRFJFQUxf
VElNRV9MT0dfU1VCRkxPV1MgICAgICAgICAgICAgICAgIyBub3Qgc3VwcG9ydGVkIHlldAotICAg
ICAgICAtRFJFQUxfVElNRV9MT0dfU1VCRlJBTUVfU1lOQyAgICAgICAgICAgIyBUaGUgIlNlbWF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2YgZmlsZQ0KKyAgICAgICAgLURUSU1FTElORV9M
T0dHSU5HICANClwgTm8gbmV3bGluZSBhdCBlbmQgb2YgZmlsZQ0K

--_005_05631F9E1D205545AE257AD60A87DB771BD2C173fosteraltair_--


From MAILER-DAEMON Sun Dec 16 17:55:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TkN7i-0000FQ-TO
	for mharc-bug-patch@gnu.org; Sun, 16 Dec 2012 17:55:54 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50294)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreas.gruenbacher@gmail.com>) id 1TkN7e-0000EW-W0
	for bug-patch@gnu.org; Sun, 16 Dec 2012 17:55:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreas.gruenbacher@gmail.com>) id 1TkN7c-0000lF-76
	for bug-patch@gnu.org; Sun, 16 Dec 2012 17:55:50 -0500
Received: from mail-vc0-f169.google.com ([209.85.220.169]:63189)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreas.gruenbacher@gmail.com>) id 1TkN7b-0000lB-TZ
	for bug-patch@gnu.org; Sun, 16 Dec 2012 17:55:48 -0500
Received: by mail-vc0-f169.google.com with SMTP id gb23so6501930vcb.0
	for <bug-patch@gnu.org>; Sun, 16 Dec 2012 14:55:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=qnsv3dgPc5thRFf7iaL99KVAAwozH7GkaNLYrlO4crQ=;
	b=IwoiqG+c4+MuMHwofN1uZVDOIlSg22wDoiZDfD76qkp6S41MmrQMP1TWKhFmzf6IBp
	vpuaMYL8ndfgkZ5h+vT9IvAbeCERjeh0Z9PN/aLOTfYNE68XALLicaEoY+vxJytvdsWZ
	G+DFSAy6yAvokGAPx+fv/nqJIEReF6Frmx4U+mxpWL2axPROZKYpdonZS05hKv20JyRk
	81AYkibY9vgoUpD49s5t+QbvaL9Od4kJE/yQZSy8qPhyfWUTMWRQ91frWbrJCWmvF9cF
	OQfyVQwzF/w3rfKMEhGNClXf0WtPcNnko2+3KyWtRvpsxOhGFK/wqc6TPmhVI88y+5qL
	YaHQ==
MIME-Version: 1.0
Received: by 10.52.33.143 with SMTP id r15mr17694518vdi.78.1355698547036; Sun,
	16 Dec 2012 14:55:47 -0800 (PST)
Received: by 10.58.247.40 with HTTP; Sun, 16 Dec 2012 14:55:46 -0800 (PST)
In-Reply-To: <05631F9E1D205545AE257AD60A87DB771BD2C173@foster.altair>
References: <05631F9E1D205545AE257AD60A87DB771BD2C173@foster.altair>
Date: Sun, 16 Dec 2012 23:55:46 +0100
Message-ID: <CAHpGcM+4gyLhjx+A89LrAU9uWx9e=PwDx3vkDDVLrqnm-y=QZA@mail.gmail.com>
From: =?ISO-8859-1?Q?Andreas_Gr=FCnbacher?= <andreas.gruenbacher@gmail.com>
To: David Artzi <david.artzi@altair-semi.com>
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.220.169
Cc: "bug-patch@gnu.org" <bug-patch@gnu.org>
Subject: Re: [bug-patch] Assertion failed: hunk,
 file ../patch-2.5.9-src/patch.c, line 354
X-BeenThere: bug-patch@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports, suggestions,
	general discussion for GNU patch." <bug-patch.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-patch>,
	<mailto:bug-patch-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-patch>
List-Post: <mailto:bug-patch@gnu.org>
List-Help: <mailto:bug-patch-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-patch>,
	<mailto:bug-patch-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Dec 2012 22:55:53 -0000

Hello,

I don't get an assert, but patch-2.5.9 refuses to patch
CommonBuildDefines.opt.  The file contains a mix of CRLF and LF line
endings which patch-2.5.9 gets confused about.  More recent versions
of patch handle the line endings correctly.

If the problem still exists in patch-2.7.1, please provide the exact
output of patch-2.7.1.

Thanks,
Andreas


