From 8c785af0f1944d7744aa8a0a4e103554b4127016 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 15 Mar 2013 10:27:50 -0700 Subject: [PATCH] the old index has to be open in encoding mode too --- Debbugs/Status.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Debbugs/Status.pm b/Debbugs/Status.pm index c66ab41..9c9551b 100644 --- a/Debbugs/Status.pm +++ b/Debbugs/Status.pm @@ -1615,6 +1615,7 @@ sub update_realtime { my $idx_new = IO::File->new($file.'.new','w') or die "Couldn't open ${file}.new: $!"; + binmode($idx_old,':raw:utf8'); binmode($idx_new,':raw:encoding(UTF-8)'); my $min_bug = min(keys %bugs); my $line; -- 2.39.2