[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11894: 24.1.50; [PATCH] diff-apply-hunk can be off by 1 line when th
From: |
Stefan Monnier |
Subject: |
bug#11894: 24.1.50; [PATCH] diff-apply-hunk can be off by 1 line when the hunk is 0-context pure removal |
Date: |
Thu, 19 Jul 2012 03:58:55 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
>> This looks like a bug in those versions of diff (not that I know
>> a non-buggy version, tho).
> Maybe, but that's how POSIX wants it:
> The ending line number of an empty range shall be the number of the
> preceding line, or 0 if the range is at the start of the file.
Hmm... but the number we're talking about is the starting-line-number,
isn't it?
In any case I think that we're OK in the sense that we're not doing
much worse than `patch'.
Stefan