[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-663-gb789a45
Jesse Vincent
jesse at bestpractical.com
Fri Sep 3 14:08:08 EDT 2010
The branch, 3.9-trunk has been updated
via b789a4537dadc578c5a228e39d5c37e6dd2f1358 (commit)
from 7f41a58f5a56da0dc431dc882be7560c32590545 (commit)
Summary of changes:
t/mail/sendmail.t | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit b789a4537dadc578c5a228e39d5c37e6dd2f1358
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Fri Sep 3 14:07:04 2010 -0400
Turns out that MIME::Words isn't utf8 safe and was corrupting output we were testing.
</3
diff --git a/t/mail/sendmail.t b/t/mail/sendmail.t
index de159e8..ad9fa85 100644
--- a/t/mail/sendmail.t
+++ b/t/mail/sendmail.t
@@ -413,6 +413,8 @@ sub text_plain_nested_redef_sendmessage {
my $encoded_subject = $MIME->head->get("subject");
my $subject = decode_mimewords($encoded_subject);
+ # MIME::Words isn't actually UTF8-safe. There go 4 hours I'll never get back.
+ utf8::decode($subject);
like($subject, qr/Niv\x{e5}er/, "The subject matches the word - $subject");
1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list