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

Re: [PATCH 3/2] attribute "coding": specify blob encoding

From
しらいしななこ <nanako3@bluebottle.com>
Date
Jan 3, 2008, 21:23 UTC
Message-ID
<200801032128.m03LSIn2022902@mi0.bluebottle.com>
In-Reply-To
<7vsl1gy2si.fsf@gitster.siamese.dyndns.org>
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
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 9 in “fix "git diff" to create wrong UTF-8 text”
  1. fix "git diff" to create wrong UTF-8 textTsugikazu Shibata, Jan 1, 2008
  2. Junio C HamanoJan 2, 2008
  3. 1/2 utf8_width(): allow non NUL-terminated inputJunio C Hamano, Jan 2, 2008
  4. 2/2 diff: do not chomp hunk-header in the middle of a characterJunio C Hamano, Jan 2, 2008
  5. 3/2 attribute "coding": specify blob encodingJunio C Hamano, Jan 2, 2008
  6. しらいしななこJan 3, 2008
  7. Junio C HamanoJan 3, 2008
  8. Tsugikazu ShibataJan 4, 2008
  9. Junio C HamanoJan 4, 2008

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.