]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Common.pm
all files that __add_to_hash reads should be in UTF-8
[debbugs.git] / Debbugs / Common.pm
index b59e6fa88b5985287e319af836de7aafb31113db..f3c8218ea66cf1cc8e63e6ac77e22fd31d5a2f47 100644 (file)
@@ -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*$/;