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
Alexey Shumkin <zapped@mail.ru>
Date
Sep 20, 2011, 19:55 UTC
Message-ID
<20110920235505.26fb6501@zappedws>
In-Reply-To
<7v62kn6mqi.fsf@alter.siamese.dyndns.org>
Show 15 quoted lines
> Alexey Shumkin <zapped@mail.ru> writes:
> 
> > 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?
Oooh! I made a mistake. I'm sorry
get_log_output_encoding must be used instead, yes
Show 11 quoted lines
> 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: Junio C Hamano
Message 3 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.