Re: [PATCH 3/2] attribute "coding": specify blob encoding
From: しらいしななこ <hidden>
Date: 2016-06-15 22:44:02
Quoting Junio C Hamano [off-list ref]:
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 <redacted> --- * 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