aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-10-23 18:53:23 +0200
committerGuido Günther <agx@sigxcpu.org>2015-12-02 18:54:50 +0100
commitc2ad9df910ba4cfcb3d2f8c1c8a2e8fcf5ccfdae (patch)
tree539f03d1eeeb4c67eb98f8d0cce5541d38c9018e
parent5779ec5385c1be086c48d3f60b6c52c69f56bd5a (diff)
HACK: Hardcode FileVFS encoding for now
we later want to get binary and only use an encoding for text files.
-rw-r--r--gbp/deb/source.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gbp/deb/source.py b/gbp/deb/source.py
index 2466ab9..8c88555 100644
--- a/gbp/deb/source.py
+++ b/gbp/deb/source.py
@@ -33,8 +33,9 @@ class FileVfs(object):
self._dir = dir
def open(self, path, flags=None):
- flags = flags or 'r'
- return open(os.path.join(self._dir, path), flags)
+ # Workaround: needs to be aligne with GitVfs
+ mode = flags or 'r'
+ return open(os.path.join(self._dir, path), mode, encoding='utf-8')
class DebianSourceError(Exception):
pass