summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorРоман Донченко <dpb@corrigendum.ru>2014-12-14 18:59:47 +0300
committerJunio C Hamano <gitster@pobox.com>2014-12-15 09:06:40 -0800
commitab47e2a583917ecef5da269cc640f8359c8467ac (patch)
tree45104be9f5463dd7998e4f4f096d998b646a037f /t
parent11f70a7e29ff7167e89aad186d763a4b017e48d9 (diff)
downloadgit-ab47e2a583917ecef5da269cc640f8359c8467ac.tar.gz
send-email: handle adjacent RFC 2047-encoded words properlyrd/send-email-2047-fix
The RFC says that they are to be concatenated after decoding (i.e. the intervening whitespace is ignored). Signed-off-by: Роман Донченко <dpb@corrigendum.ru> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t9001-send-email.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 1ecdacb6fd..f933bc7ec7 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -240,6 +240,13 @@ test_expect_success $PREREQ 'non-ascii self name is suppressed' "
'non_ascii_self_suppressed'
"
+# This name is long enough to force format-patch to split it into multiple
+# encoded-words, assuming it uses UTF-8 with the "Q" encoding.
+test_expect_success $PREREQ 'long non-ascii self name is suppressed' "
+ test_suppress_self_quoted 'Ƒüñníęř €. Nâṁé' 'odd_?=mail@example.com' \
+ 'long_non_ascii_self_suppressed'
+"
+
test_expect_success $PREREQ 'sanitized self name is suppressed' "
test_suppress_self_unquoted '\"A U. Thor\"' 'author@example.com' \
'self_name_sanitized_suppressed'