summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-13 18:47:29 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-13 20:02:05 +0200
commitd6eb3335a83218d8cc0bf9658b5fd0c17c8ddf19 (patch)
tree53e7370ff8ed139968c270a5cef5aff5ef593fc1
parent4978f3e64f16601a026eb22f71f1c824fee90419 (diff)
downloadjenkins.debian.net-d6eb3335a83218d8cc0bf9658b5fd0c17c8ddf19.tar.xz
reproducible: common: explicit encoding when writing the html files. somehow this broke recently, and it start using ANSI_X3.4-1968 (o.O)
-rwxr-xr-xbin/reproducible_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index fcd554f7..fa8394ba 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -231,7 +231,7 @@ def write_html_page(title, body, destfile, suite=defaultsuite, arch=defaultarch,
except OSError as e:
if e.errno != errno.EEXIST: # that's 'File exists' error (errno 17)
raise
- with open(destfile, 'w') as fd:
+ with open(destfile, 'w', encoding='UTF-8') as fd:
fd.write(html)
def start_db_connection():