From e343024dc46a8f513e78eec3d756b0d9f8bfd6f6 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 2 Mar 2015 23:18:27 +0100 Subject: gnu: tcsh: Use ISO-8859-1 when patching "tests/testsuite". * gnu/packages/tcsh.scm (tcsh)[arguments]: Set %DEFAULT-PORT-ENCODING before substituting "tests/testsuite". Fixes build failure at . --- gnu/packages/tcsh.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu/packages/tcsh.scm') diff --git a/gnu/packages/tcsh.scm b/gnu/packages/tcsh.scm index f582713911..814f2a6321 100644 --- a/gnu/packages/tcsh.scm +++ b/gnu/packages/tcsh.scm @@ -58,7 +58,11 @@ (("; other_script.csh") "; /bin/sh other_script.csh")) ;; Now, let's generate the test suite and patch it (system* "make" "tests/testsuite") - (substitute* "tests/testsuite" (("/bin/sh") (which "sh")))) + + ;; This file is ISO-8859-1 encoded. + (with-fluids ((%default-port-encoding #f)) + (substitute* "tests/testsuite" + (("/bin/sh") (which "sh"))))) (alist-cons-after 'install 'post-install (lambda* (#:key inputs outputs #:allow-other-keys) -- cgit v1.2.3