[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: common: explicit encoding when writing the html files. somehow this broke recently, and it start using ANSI_X3.4-1968 (o.O)

Holger Levsen holger at moszumanska.debian.org
Mon Apr 13 18:05:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit d6eb3335a83218d8cc0bf9658b5fd0c17c8ddf19
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Mon Apr 13 18:47:29 2015 +0200

    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(-)

diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index fcd554f..fa8394b 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():

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list