From 233001a0e369ae145c571ffdc8789f2f0a374c4a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 28 May 2010 11:03:18 +0200 Subject: comirror: Also fix utf8 handling --- bin/comirror | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/comirror b/bin/comirror index 106e7c3..378c171 100755 --- a/bin/comirror +++ b/bin/comirror @@ -96,6 +96,7 @@ sub file_to_hash { } open(my $fh, '<', $file) or die("Cannot read $file: $!\n"); + binmode($fh, ':utf8'); while(my $line = <$fh>) { $line =~ / ^ (? \S+ ) [[:space:]]+ (? .*) $ /x or next; $return{$+{key}} = $+{value}; -- cgit v1.2.3