From: Junio C Hamano Date: Sun, 04 Sep 2005 19:25:16 GMT Subject: Re: [PATCH] Make git-apply understand "\ No newline at end of file" in non-english locales Message-ID: <7vd5noeiub.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20050904184625.GB23525@c165.ib.student.liu.se> Fredrik Kuivinen writes: > The message "\ No newline at end of file" which sometimes is produced > by diff(1) is locale dependent. We can't assume more than that it > begins with "\ ". > > Signed-off-by: Fredrik Kuivinen > --- > > The previous patch wasn't doing the right thing. Hopefully I have > managed to get it right this time. I noticed that you left 12 in the previous patch, and thought it was a sane safety measure to make sure that the incomplete line marker is of reasonably length, not just any line that starts with '\ ' (i.e. "\ foobar\n", which is a tad short).