[projects/pld-builder.new] queue.html: write the page in utf-8

arekm arekm at pld-linux.org
Thu Nov 12 10:29:17 CET 2026


commit 304a73a0fef32603d8e5d8a2a49575183fc1ad71
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 10:24:30 2026 +0100

    queue.html: write the page in utf-8
    
    The page says it is utf-8, but was written in the encoding of the
    locale. Under a latin-1 one the src builder died on the arrow in a
    build time tooltip, after the request was put into the queue for the
    binary builders but before that queue was signed and published, so no
    request reached them.

 PLD_Builder/bqueue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/PLD_Builder/bqueue.py b/PLD_Builder/bqueue.py
index 3e59256..31d93cb 100644
--- a/PLD_Builder/bqueue.py
+++ b/PLD_Builder/bqueue.py
@@ -35,7 +35,7 @@ class B_Queue:
 
     def dump_html(self, fname):
         (fdno, tmpfname) = tempfile.mkstemp(dir=os.path.dirname(fname))
-        f = os.fdopen(fdno, "w")
+        f = os.fdopen(fdno, "w", encoding="utf-8")
         queue_html.write(f, self.requests, os.path.dirname(fname))
         f.flush()
         os.fsync(f.fileno())
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/389ce5a31104551f35ba9b41daa82bb3d44c89ff



More information about the pld-cvs-commit mailing list