Commit 42d961c8 authored by Gervase Markham's avatar Gervase Markham

Bug 1161068 - Write mailer.testfile as UTF-8. r,a=glob

parent 2102accd
......@@ -260,7 +260,7 @@ sub MessageToMTA {
if ($method eq "Test") {
my $filename = bz_locations()->{'datadir'} . '/mailer.testfile';
open TESTFILE, '>>', $filename;
open TESTFILE, '>>:encoding(UTF-8)', $filename;
# From - <date> is required to be a valid mbox file.
print TESTFILE "\n\nFrom - " . $email->header('Date') . "\n" . $email->as_string;
close TESTFILE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment