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

[PATCH 2/2] Correctly mark cover letters' encodings if they are not pure ASCII

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 10, 2009, 16:22 UTC
Message-ID
<c3c2969ae2c3b358542a466f52ea147f0275eccd.1249921206u.git.johannes.schindelin@gmx.de>
In-Reply-To
<cover.1249921206u.git.johannes.schindelin@gmx.de>

If your name is, say, Üwë, you want your cover letters to appear correctly. Convince format-patch to mark it as 8-bit.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 builtin-log.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/builtin-log.c b/builtin-log.c
index 3600215..d4a6a7d 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -678,6 +678,10 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout,
 	log_write_email_headers(rev, head, &subject_start, &extra_headers,
 				&need_8bit_cte);
 
+	for (i = 0; !need_8bit_cte && i < nr; i++)
+		if (has_non_ascii(list[i]->buffer))
+			need_8bit_cte = 1;
+
 	msg = body;
 	pp_user_info(NULL, CMIT_FMT_EMAIL, &sb, committer, DATE_RFC2822,
 		     encoding);
-- 
1.6.3.2.734.g770e
Previous: Johannes Schindelin
Message 3 of 3 in “Fix cover letters when they contain non-ASCII”
  1. 0/2 Fix cover letters when they contain non-ASCIIJohannes Schindelin, Aug 10, 2009
  2. 1/2 Expose the has_non_ascii() functionJohannes Schindelin, Aug 10, 2009
  3. 2/2 Correctly mark cover letters' encodings if they are not pure ASCIIJohannes Schindelin, Aug 10, 2009

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.