]> git.donarmstrong.com Git - debbugs.git/blobdiff - t/13_utf8_mail.t
attachments must be encoded into octets
[debbugs.git] / t / 13_utf8_mail.t
index be6b6c654f7a657b3d1fa9468c1cc6b7e30a442c..7ef4aaffdc98c393d97f5a130a41bf8b52c5d906 100644 (file)
@@ -56,7 +56,7 @@ send_message(to=>'submit@bugs.something',
                         From => 'föoff@bugs.something',
                         Subject => 'Submiting a bug',
                        ],
-            body => <<EOF,attachments => [{Type=>"text/plain",Charset=>"utf-8",Data=><<EOF2}]) or fail('Unable to send message');
+            body => <<EOF,attachments => [{Type=>"text/plain",Charset=>"utf-8",Data=>encode_utf8(<<EOF2)}]) or fail('Unable to send message');
 Package: foo
 Severity: normal