diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-16 04:13:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-16 04:13:18 -0700 |
commit | 228f9c9a9f66ca9c5b9adb2d2bffc19de25a8d85 (patch) | |
tree | cee1dddcf4af2135fbd6b8f8389523374f9f088b /builtin-log.c | |
parent | 14683af812ee0b19c416223287c6e330dbdc9ffc (diff) | |
parent | 0a7f448355f38b8a626ec3c120ad7118690897fe (diff) | |
download | git-228f9c9a9f66ca9c5b9adb2d2bffc19de25a8d85.tar.gz |
Merge branch 'js/maint-cover-letter-non-ascii'
* js/maint-cover-letter-non-ascii:
Correctly mark cover letters' encodings if they are not pure ASCII
Expose the has_non_ascii() function
Diffstat (limited to 'builtin-log.c')
-rw-r--r-- | builtin-log.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin-log.c b/builtin-log.c index 3817bf1186..82236c531b 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -670,6 +670,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); |