X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fprocess;h=d42a1f92b995c8a8c98a77969e62a436a595a348;hb=871502f5eabc4fd0025546ccb3988ae4c446735f;hp=73eebb0c19bf81a441d9876d848dfd1c06be4495;hpb=3ba6064542c75036f956ab24c7fccbd9bb6fcf29;p=debbugs.git diff --git a/scripts/process b/scripts/process index 73eebb0..d42a1f9 100755 --- a/scripts/process +++ b/scripts/process @@ -224,6 +224,7 @@ for my $phline (@bodylines) # Remove BOM markers from UTF-8 strings # Fixes #488554 $phline =~ s/\xef\xbb\xbf//g; + $phline =~ s/\N{U+FEFF}//g; last if $phline !~ m/^([\w-]+):\s*(\S.*)/; my ($fn, $fv) = ($1, $2); $fv =~ s/\s*$//; @@ -1207,7 +1208,7 @@ sub sendmessage { write_log_records(logfh => $logfh, records => {text => stripbccs($msg), type => 'recips', - recips => [@{$recips}], + recips => [map {encode_utf8($_)} @{$recips}], }, ); if (ref($bcc)) {