aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-08-09 15:58:14 +0200
committerLudovic Courtès <ludo@gnu.org>2022-08-09 15:58:14 +0200
commite1b8bace8cf26fb7aa32614241917832b4225b44 (patch)
tree4af5c2692e9a99d8608d7f0126bf171fd2f542d5
parentfdafd404325413da4d5fdd717c84e57a51c60fe2 (diff)
downloadguix-e1b8bace8cf26fb7aa32614241917832b4225b44.tar.gz
guix-e1b8bace8cf26fb7aa32614241917832b4225b44.zip
tests: git: Write files as UTF-8.
* guix/tests/git.scm (populate-git-repository): Add call to 'set-port-encoding!' in 'add' case.
-rw-r--r--guix/tests/git.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/tests/git.scm b/guix/tests/git.scm
index 94f1021c79..d51e49e514 100644
--- a/guix/tests/git.scm
+++ b/guix/tests/git.scm
@@ -73,6 +73,7 @@ Return DIRECTORY on success."
(mkdir-p (dirname file))
(call-with-output-file file
(lambda (port)
+ (set-port-encoding! port "UTF-8")
(display (if (string? contents)
contents
(with-repository directory repository