aboutsummaryrefslogtreecommitdiff
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-01-07 13:06:47 -0800
committerJunio C Hamano <gitster@pobox.com>2015-01-07 13:06:47 -0800
commit948e81408d29be0d39b55d5da41a6c7c9b93fbc0 (patch)
treee80801eae27fdc36b81bbc349201c2de9ce2e255 /t/t9001-send-email.sh
parente82f629cf40795e7780329f056fc3df2d6adc97b (diff)
parentab47e2a583917ecef5da269cc640f8359c8467ac (diff)
downloadgit-948e81408d29be0d39b55d5da41a6c7c9b93fbc0.tar.gz
git-948e81408d29be0d39b55d5da41a6c7c9b93fbc0.tar.xz
Merge branch 'rd/send-email-2047-fix'
"git send-email" did not handle RFC 2047 encoded headers quite right. * rd/send-email-2047-fix: send-email: handle adjacent RFC 2047-encoded words properly send-email: align RFC 2047 decoding more closely with the spec
Diffstat (limited to 't/t9001-send-email.sh')
-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 e37efef5c..a8773bdf3 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -242,6 +242,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'