From 187c1fd49d3cb04a9507699c333f32bcea910bf4 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 12 Jul 2024 23:15:47 +0200 Subject: Set JSON file encoding using parameter --- tw/gexp.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tw/gexp.scm b/tw/gexp.scm index 49021ebd..fb904fab 100644 --- a/tw/gexp.scm +++ b/tw/gexp.scm @@ -27,5 +27,5 @@ (with-extensions (list guile-json-4) #~(call-with-output-file #$output (lambda (port) - (set-port-encoding! port "UTF-8") - ((@ (json) scm->json) '#$value port #:unicode #t)))))) + ((@ (json) scm->json) '#$value port #:unicode #t)) + #:encoding "UTF-8")))) -- cgit v1.2.3