From 1f3d7b45349d43e5cc02594083e0cd44ef730992 Mon Sep 17 00:00:00 2001 From: Andrew Tropin Date: Fri, 18 Jun 2021 07:15:36 +0300 Subject: gexp: 'mixed-text-file' UTF-8-encodes its output. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * guix/gexp.scm (mixed-text-file)[build]: Call 'set-port-encoding!'. Signed-off-by: Ludovic Courtès --- guix/gexp.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'guix') diff --git a/guix/gexp.scm b/guix/gexp.scm index afb935761e..187f5c5e85 100644 --- a/guix/gexp.scm +++ b/guix/gexp.scm @@ -1921,6 +1921,7 @@ (define* (mixed-text-file name #:rest text) (define build (gexp (call-with-output-file (ungexp output "out") (lambda (port) + (set-port-encoding! port "UTF-8") (display (string-append (ungexp-splicing text)) port))))) (computed-file name build)) -- cgit v1.2.3