Re: [PATCH 3/2] attribute "coding": specify blob encoding
Quoting Junio C Hamano <gitster@pobox.com>:
Show 9 quoted lines
> 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 <gitster@pobox.com>
> ---
>
> * 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.
Show 7 quoted lines
> +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