From d6eb3335a83218d8cc0bf9658b5fd0c17c8ddf19 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Mon, 13 Apr 2015 18:47:29 +0200 Subject: reproducible: common: explicit encoding when writing the html files. somehow this broke recently, and it start using ANSI_X3.4-1968 (o.O) --- bin/reproducible_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/reproducible_common.py') 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(): -- cgit v1.2.3-70-g09d2