git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make git-apply understand "\ No newline at end of file" in non-english locales

From
Fredrik Kuivinen <freku045@student.liu.se>
Date
Sep 5, 2005, 05:25 UTC
Message-ID
<20050905052549.GA1875@c165.ib.student.liu.se>
In-Reply-To
<7vd5noeiub.fsf@assigned-by-dhcp.cox.net>
On Sun, Sep 04, 2005 at 12:25:16PM -0700, Junio C Hamano wrote:
Show 17 quoted lines
> Fredrik Kuivinen <freku045@student.liu.se> 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 <freku@ida.liu.se>
> > ---
> >
> > 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).
> 
Maybe the first patch wasn't that bad after all :)

In the current diffutils package the Swedish translation is one of the shortest ones, so 12 is ok for now at least.

- Fredrik
Previous: Junio C Hamano
Message 4 of 4 in “Make git-apply understand "\ No newline at end of file" in non-english locales”
  1. Make git-apply understand "\ No newline at end of file" in non-english localesFredrik Kuivinen, Sep 4, 2005
  2. Fredrik KuivinenSep 4, 2005
  3. Junio C HamanoSep 4, 2005
  4. Fredrik KuivinenSep 5, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.