tests: git: Write files as UTF-8.

* guix/tests/git.scm (populate-git-repository): Add call to
'set-port-encoding!' in 'add' case.
This commit is contained in:
Ludovic Courtès 2022-08-09 15:58:14 +02:00
parent fdafd40432
commit e1b8bace8c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 0 deletions

View File

@ -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