[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