X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fgen-indices;h=7a8670d96ffb8c69fe90e73185e78a156792183b;hb=5675f516e72951e15cafa1fa72e1d7ff88bb4d80;hp=0fe8ea82fcb577304cebacc374e385832e8ba6a3;hpb=0b63438d6beca43a78a941605db8fd446a3af7c2;p=debbugs.git diff --git a/scripts/gen-indices b/scripts/gen-indices index 0fe8ea8..7a8670d 100755 --- a/scripts/gen-indices +++ b/scripts/gen-indices @@ -83,6 +83,7 @@ use Debbugs::Config qw(:config); use Debbugs::Common qw(getparsedaddrs getbugcomponent lockpid); use Debbugs::Status qw(readbug split_status_fields); use Debbugs::Log; +use Debbugs::UTF8 qw(encode_utf8_structure); chdir($config{spool_dir}) or die "chdir $config{spool_dir} failed: $!"; @@ -198,7 +199,7 @@ while (my $dir = shift @dirs) { next; } next if $stat->mtime < $time; - my $fdata = split_status_fields(readbug($bug, $initialdir)); + my ($fdata) = encode_utf8_structure(split_status_fields(readbug($bug, $initialdir))); $modification_made = 1; addbugtoindex("package", $bug, make_list($fdata->{package})); addbugtoindex("tag", $bug, make_list($fdata->{keywords}));