diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-01-07 13:06:47 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-07 13:06:47 -0800 |
commit | 948e81408d29be0d39b55d5da41a6c7c9b93fbc0 (patch) | |
tree | e80801eae27fdc36b81bbc349201c2de9ce2e255 /t | |
parent | Merge branch 'pd/completion-filenames-fix' (diff) | |
parent | send-email: handle adjacent RFC 2047-encoded words properly (diff) | |
download | tgif-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')
-rwxr-xr-x | t/t9001-send-email.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index e37efef5ca..a8773bdf37 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' |