bug-patch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-patch] Failure to parse copied context format without context


From: Mattias Andrée
Subject: [bug-patch] Failure to parse copied context format without context
Date: Thu, 17 Mar 2016 15:17:40 +0100
User-agent: Claws Mail

Hi!

I run some test-cases for patch(1p) I created
on your implementation and found two cases where
it fails.

I have attached four files.
If you run

  diff -C0 old-1 new-1 | patch -o - old-1
  diff -C0 old-2 new-2 | patch -o - old-2

you will see that both runs output

  patch: **** replacement text or line numbers mangled in hunk at line 4

There is nothing wrong in the output of diff.
This error only happens if -C0 is used, -c, -u
-C1, -U0, -U1, and no flags works just fine.


Sincerely,
Mattias Andrée

Attachment: new-1
Description: Binary data

Attachment: new-2
Description: Binary data

Attachment: old-1
Description: Binary data

Attachment: old-2
Description: Binary data

Attachment: pgpdutY0q_I24.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]