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

Re: [PATCH] format-patch: cover letter does not respect i18n.commitencoding

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 20, 2011, 19:24 UTC
Message-ID
<7v62kn6mqi.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1316507177-6403-1-git-send-email-zapped@mail.ru>
Alexey Shumkin <zapped@mail.ru> writes:
Show 10 quoted lines
> diff --git a/builtin/log.c b/builtin/log.c
> index 5c2af59..6a4050c 100644
> --- a/builtin/log.c
> +++ b/builtin/log.c
> @@ -769,7 +769,7 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout,
>  	struct shortlog log;
>  	struct strbuf sb = STRBUF_INIT;
>  	int i;
> -	const char *encoding = "UTF-8";
> +	const char *encoding =  get_commit_output_encoding();

Hmm, I have a feeling that this should use log output encoding. Am I mistaken?

The i18n.commitencoding variable is about the internal representation in the object [*1*] that is to be converted from the encoding of the original e-mail message which could be different. i18n.logoutputencoding is to externalize it [*2*].

[Footnotes]

*1* f1f909e (mailinfo: Use i18n.commitencoding, 2005-11-27) *2* a731ec5 (t3901: test "format-patch | am" pipe with i18n, 2007-01-13)

Previous: Alexey ShumkinNext: Alexey Shumkin
Message 2 of 3 in “format-patch: cover letter does not respect i18n.commitencoding”
  1. format-patch: cover letter does not respect i18n.commitencodingAlexey Shumkin, Sep 20, 2011
  2. Junio C HamanoSep 20, 2011
  3. Alexey ShumkinSep 20, 2011

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.