From c3327b5d6f1eaeabfe09bff46b37ba258e18a16d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 7 Jul 2012 13:47:52 -0700 Subject: [PATCH] all files that __add_to_hash reads should be in UTF-8 --- Debbugs/Common.pm | 1 + 1 file changed, 1 insertion(+) 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*$/; -- 2.39.2