From 8487fb947f9c3169d491660a4f6700652f2c62ff Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 14 Mar 2013 14:20:22 -0700 Subject: [PATCH] the datastructure needs to be encoded before gen-indices uses it --- scripts/gen-indices | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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})); -- 2.39.2