From: Don Armstrong Date: Sat, 7 Jul 2012 20:43:44 +0000 (-0700) Subject: read the log file as utf8 by default X-Git-Tag: release/2.6.0~376^2~3 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=b3cb0cef1bd3f3644d160d19442bc46c065ce1ce read the log file as utf8 by default --- diff --git a/Debbugs/Log.pm b/Debbugs/Log.pm index a28384d..e58d84a 100644 --- a/Debbugs/Log.pm +++ b/Debbugs/Log.pm @@ -201,6 +201,7 @@ sub new die "Unable to open bug log $bug_log for reading: $!"; } + binmode($self->{logfh},':utf8'); $self->{state} = 'kill-init'; $self->{linenum} = 0; return $self;