From 0a7f448355f38b8a626ec3c120ad7118690897fe Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 10 Aug 2009 18:22:22 +0200 Subject: [PATCH] Correctly mark cover letters' encodings if they are not pure ASCII MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- builtin-log.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin-log.c b/builtin-log.c index 0c2fa0ae2..1929e0a16 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -658,6 +658,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); -- 2.30.2