aboutsummaryrefslogtreecommitdiff
path: root/gbp/scripts/dch.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/scripts/dch.py')
-rw-r--r--gbp/scripts/dch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index 230d908..32aac04 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -139,8 +139,8 @@ def mangle_changelog(changelog, cp, snapshot=''):
"""
try:
tmpfile = '%s.%s' % (changelog, snapshot)
- cw = open(tmpfile, 'w')
- cr = open(changelog, 'r')
+ cw = open(tmpfile, 'w', encoding='utf-8')
+ cr = open(changelog, 'r', encoding='utf-8')
print("%(Source)s (%(MangledVersion)s) "
"%(Distribution)s; urgency=%(urgency)s\n" % cp, file=cw)