From: Don Armstrong Date: Sat, 7 Jul 2012 20:47:52 +0000 (-0700) Subject: all files that __add_to_hash reads should be in UTF-8 X-Git-Tag: release/2.6.0~376^2~1 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=c3327b5d6f1eaeabfe09bff46b37ba258e18a16d all files that __add_to_hash reads should be in UTF-8 --- diff --git a/Debbugs/Common.pm b/Debbugs/Common.pm index b59e6fa..f3c8218 100644 --- a/Debbugs/Common.pm +++ b/Debbugs/Common.pm @@ -432,6 +432,7 @@ sub __add_to_hash { $type //= 'address'; my $fh = IO::File->new($fn,'r') or die "Unable to open $fn for reading: $!"; + binmode($fh,':encoding(UTF-8)'); while (<$fh>) { chomp; next unless m/^(\S+)\s+(\S.*\S)\s*$/;