]> git.donarmstrong.com Git - debbugs.git/commitdiff
all files that __add_to_hash reads should be in UTF-8
authorDon Armstrong <don@donarmstrong.com>
Sat, 7 Jul 2012 20:47:52 +0000 (13:47 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 7 Jul 2012 20:47:52 +0000 (13:47 -0700)
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*$/;