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

Re: [RFC/PATCH 2/4] textconv: make diff_options accessible from blame

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 4, 2010, 07:59 UTC
Message-ID
<vpqy6evut1o.fsf@bauges.imag.fr>
In-Reply-To
<7vvd9z5owr.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> Axel Bonnet <axel.bonnet@ensimag.imag.fr> writes:
>
>> Diff_options specify whether conversion is activated or not. Blame needs
>> to access these options in order to concert files with external drivers
>>
>> Signed-off-by: Diane Gasselin <diane.gasselin@ensimag.imag.fr>
>> Signed-off-by: Clément Poulain <clement.poulain@ensimag.imag.fr>
>> Signed-off-by: Axel Bonnet <axel.bonnet@ensimag.imag.fr>
>
> The name of Clément is spelled correctly on the mail header while S-o-b
> line is corrupt.

Actually, it's valid UTF-8, but there's no header specifying the encoding in the email, therefore, the reader's default applies. My mailer displays it correctly, but yours doesn't.

> Perhaps you have recorded your commits in UTF-8 but allowed your MUA
> to send in 8859-1?

The MUA seems to be git-send-email. According to the source (I didn't find it in the doc), git-send-email looks at the patch's headers to specify the encoding.

On my machine, the patch applies well, and if I re-export it using format-patch, I do get the headers:

Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

If I send myself the patch with git-send-email, I also get the headers in the email (I tried from ensibm, which is the machine which sent the patch serie). So, it doesn't look like a bug in git, but rather a miss-use.

Axel, can you give us the exact command(s) you used to send the patch?
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C HamanoNext: bonneta
Message 14 of 16 in “textconv support for blame”
  1. 0/4 textconv support for blameAxel Bonnet, Jun 3, 2010
  2. 1/4 textconv: make the API publicAxel Bonnet, Jun 3, 2010
  3. 2/4 textconv: make diff_options accessible from blameAxel Bonnet, Jun 3, 2010
  4. 3/4 textconv: support for blameAxel Bonnet, Jun 3, 2010
  5. 4/4 t/t8006: test textconv support for blameAxel Bonnet, Jun 3, 2010
  6. Johannes SixtJun 3, 2010
  7. Diane GasselinJun 4, 2010
  8. Matthieu MoyJun 4, 2010
  9. Matthieu MoyJun 4, 2010
  10. Junio C HamanoJun 4, 2010
  11. Diane GasselinJun 4, 2010
  12. Jeff KingJun 6, 2010
  13. Junio C HamanoJun 4, 2010
  14. Matthieu MoyJun 4, 2010
  15. bonnetaJun 4, 2010
  16. Matthieu MoyJun 4, 2010

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.