From: Don Armstrong Date: Fri, 15 Mar 2013 17:27:50 +0000 (-0700) Subject: the old index has to be open in encoding mode too X-Git-Tag: release/2.6.0~304 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=8c785af0f1944d7744aa8a0a4e103554b4127016 the old index has to be open in encoding mode too --- 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;