This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch utf8fix
in repository lintian.

commit c163818e0d98b104922979b4fc8f01621e35e64c
Author: Bastien ROUCARIÈS <roucaries.bastien+deb...@gmail.com>
Date:   Tue Jul 21 23:36:11 2015 +0200

    read_dpkg_control using utf8
    
    Avoid mojibake on html page
---
 lib/Lintian/Util.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Lintian/Util.pm b/lib/Lintian/Util.pm
index 2b6e9e4..8eb35b2 100644
--- a/lib/Lintian/Util.pm
+++ b/lib/Lintian/Util.pm
@@ -619,7 +619,7 @@ autodie exceptions if open or close fails.
 sub read_dpkg_control {
     my ($file, $flags, $lines) = @_;
 
-    open(my $CONTROL, '<', $file);
+    open(my $CONTROL, '<:encoding(utf8)', $file);
     my @data = parse_dpkg_control($CONTROL, $flags, $lines);
     close($CONTROL);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/lintian/lintian.git

Reply via email to