From: しらいしななこ Date: Thu, 03 Jan 2008 21:23:25 GMT Subject: Re: [PATCH 3/2] attribute "coding": specify blob encoding Message-ID: <200801032128.m03LSIn2022902@mi0.bluebottle.com> In-Reply-To: <7vsl1gy2si.fsf@gitster.siamese.dyndns.org> Quoting Junio C Hamano : > This teaches "diff hunk header" function about custom character > encoding per path via gitattributes(5) so that it can sensibly > chomp a line without truncating a character in the middle. > > Signed-off-by: Junio C Hamano > --- > > * This is not intended for serious inclusion, but was done more > as a demonstration of the concept, hence [3/2]. Why not? It looks a useful addition for us Japanese people. > +static struct { > + const char *coding; > + sane_truncate_fn fn; > +} builtin_truncate_fn[] = { > + { "euc-jp", truncate_euc_jp }, > + { "utf-8", NULL }, > +}; Can you also do JIS and Shift JIS? I ask because many of my old notes are in Shift JIS and I think it is the same for many other people. -- Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/ ---------------------------------------------------------------------- Get a free email account with anti spam protection. http://www.bluebottle.com/tag/2