From: Krzysztof Mazur Date: Wed, 24 Oct 2012 21:28:29 +0000 (+0200) Subject: git-send-email: add rfc2047 quoting for "=?" X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce1459f740a591c63697ff6ff3c106123630539c;p=git.git git-send-email: add rfc2047 quoting for "=?" For raw subjects rfc2047 quoting is needed not only for non-ASCII characters, but also for any possible rfc2047 in it. Signed-off-by: Krzysztof Mazur Signed-off-by: Jeff King --- diff --git a/git-send-email.perl b/git-send-email.perl index 1574675d1..5a7c29db9 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -908,7 +908,7 @@ sub is_rfc2047_quoted { sub subject_needs_rfc2047_quoting { my $s = shift; - return ($s =~ /[^[:ascii:]]/); + return ($s =~ /[^[:ascii:]]/) || ($s =~ /=\?/); } sub quote_subject {