From 31939acd6c4809a2c0428950a6008dbd16b5dea8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Nov 2020 19:16:34 +0100 Subject: fix(buildLisp): Override LANG in sbclWith for misconfigured machines Machines on which LANG is misconfigured have trouble with SBCL loading files that contain characters in certain encodings. This overrides whichever local LANG (if any) is set. Change-Id: Ic4341a01c4393e7f697de6cecc58dea4f2d85987 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2076 Tested-by: BuildkiteCI Reviewed-by: glittershark --- nix/buildLisp/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nix/buildLisp') diff --git a/nix/buildLisp/default.nix b/nix/buildLisp/default.nix index 9538f08529..fe43c895f4 100644 --- a/nix/buildLisp/default.nix +++ b/nix/buildLisp/default.nix @@ -247,7 +247,8 @@ let sbclWith = deps: let lispDeps = filter (d: !d.lispBinary) (allDeps deps); in writeShellScriptBin "sbcl" '' - export LD_LIBRARY_PATH=${lib.makeLibraryPath (allNative [] lispDeps)}; + export LD_LIBRARY_PATH="${lib.makeLibraryPath (allNative [] lispDeps)}" + export LANG="C.UTF-8" exec ${sbcl}/bin/sbcl ${lib.optionalString (deps != []) "--load ${writeText "load.lisp" (genLoadLisp lispDeps)}"} $@ ''; in { -- cgit 1.4.1