Skip to content

Commit 0a7f448

Browse files
dschogitster
authored andcommitted
Correctly mark cover letters' encodings if they are not pure ASCII
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 28e9cf6 commit 0a7f448

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builtin-log.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,10 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout,
658658
log_write_email_headers(rev, head, &subject_start, &extra_headers,
659659
&need_8bit_cte);
660660

661+
for (i = 0; !need_8bit_cte && i < nr; i++)
662+
if (has_non_ascii(list[i]->buffer))
663+
need_8bit_cte = 1;
664+
661665
msg = body;
662666
pp_user_info(NULL, CMIT_FMT_EMAIL, &sb, committer, DATE_RFC2822,
663667
encoding);

0 commit comments

Comments
 (0)