Skip to content

Commit

Permalink
Correctly mark cover letters' encodings if they are not pure ASCII
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dscho authored and gitster committed Aug 10, 2009
1 parent 28e9cf6 commit 0a7f448
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0a7f448

Please sign in to comment.