[Reproducible-commits] [diffoscope] 01/02: Read Debian .changes file as utf-8 encoded
Jérémy Bobbio
lunar at moszumanska.debian.org
Tue Sep 22 09:23:24 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository diffoscope.
commit ed9263395e16f9793e736284cc4ee02648d4f9c1
Author: Jérémy Bobbio <lunar at debian.org>
Date: Tue Sep 22 10:30:27 2015 +0200
Read Debian .changes file as utf-8 encoded
This fixes running diffoscope on decoratortools.
---
diffoscope/changes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diffoscope/changes.py b/diffoscope/changes.py
index 1459176..37426e9 100644
--- a/diffoscope/changes.py
+++ b/diffoscope/changes.py
@@ -83,7 +83,7 @@ class Changes(object):
if filename:
self._absfile = os.path.abspath(filename)
self._directory = os.path.dirname(self._absfile)
- self._data = deb822.Changes(open(filename))
+ self._data = deb822.Changes(open(filename, encoding='utf-8'))
self.basename = os.path.basename(filename)
else:
self._data = deb822.Changes(string)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list