]> git.donarmstrong.com Git - debbugs.git/blobdiff - scripts/process
Strip BOM before regexes involving spaces (closes: #488554)
[debbugs.git] / scripts / process
index aa001b11d2ba66138301fd4eabe6793b74015471..1bcc940f98a5117e386ecce7f78a4070d58efcf3 100755 (executable)
@@ -170,6 +170,9 @@ my %pheader;
 # extract pseudo-headers
 for my $phline (@bodylines)
 {
+    # Remove BOM markers from UTF-8 strings
+    # Fixes #488554
+    $phline =~ s/\xef\xbb\xbf//g;
     last if $phline !~ m/^([\w-]+):\s*(\S.*)/;
     my ($fn, $fv) = ($1, $2);
     $fv =~ s/\s*$//;