From: Gervase Markham Date: Tue, 19 May 2015 14:57:36 +0000 (+0100) Subject: Bug 1161068 - Write mailer.testfile as UTF-8. r,a=glob X-Git-Tag: release-5.1.1~245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d961c8712af7cbbb08d5eff1e55aa2c81c01a8;p=thirdparty%2Fbugzilla.git Bug 1161068 - Write mailer.testfile as UTF-8. r,a=glob --- diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 4f13f77d25..8221a34a4a 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -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 - is required to be a valid mbox file. print TESTFILE "\n\nFrom - " . $email->header('Date') . "\n" . $email->as_string; close TESTFILE;