diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-10-23 19:02:45 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-12-02 18:54:50 +0100 |
commit | f0ee702ca0a3f597c45ac79e6c2d407917af42f5 (patch) | |
tree | c2d882d5cf4c73a098b5ee8603894ae855c49306 | |
parent | 83c47c0f591818ad7ef9a3ea01bd4e21ab1eb7a3 (diff) |
dsc files are encoded as utf-8
As per Debian Policy 5.4 (which references 5.1)
-rw-r--r-- | gbp/deb/dscfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/deb/dscfile.py b/gbp/deb/dscfile.py index afde19f..1ea5b25 100644 --- a/gbp/deb/dscfile.py +++ b/gbp/deb/dscfile.py @@ -53,7 +53,7 @@ class DscFile(object): self.dscfile = os.path.abspath(dscfile) add_tars = [] - f = open(self.dscfile) + f = open(self.dscfile, encoding='utf-8') fromdir = os.path.dirname(os.path.abspath(dscfile)) for line in f: m = self.version_re.match(line) |