guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/06: tests: git: Write files as UTF-8.


From: guix-commits
Subject: 01/06: tests: git: Write files as UTF-8.
Date: Tue, 9 Aug 2022 11:59:36 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit e1b8bace8cf26fb7aa32614241917832b4225b44
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Aug 9 15:58:14 2022 +0200

    tests: git: Write files as UTF-8.
    
    * guix/tests/git.scm (populate-git-repository): Add call to
    'set-port-encoding!' in 'add' case.
---
 guix/tests/git.scm | 1 +
 1 file changed, 1 insertion(+)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]