about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-26T20·11-0400
committerglittershark <grfn@gws.fyi>2020-07-26T21·56+0000
commit2b7fe6f95769a134f55f277f7d5575530467babd (patch)
tree3e983b2188574cf8fa3f27f7f28cde24cee7b105
parent696924b5ef11ca82ba8b66d67a9e85cab04ebf5e (diff)
fix(nix/buildLisp): Set LANG to C.UTF-8 on program builds r/1487
This was already happening for libraries, but not for programs - as a
result, programs built with libraries that contained unicode (eg
cl-unicode, uax-15, ...) would fail to build due to character encoding
issues when loading the FASLs.

Change-Id: I66149b585e85b213d0c026153140a1925536bd29
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1469
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
-rw-r--r--nix/buildLisp/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nix/buildLisp/default.nix b/nix/buildLisp/default.nix
index 5d9861891b..2ee635d4c1 100644
--- a/nix/buildLisp/default.nix
+++ b/nix/buildLisp/default.nix
@@ -146,6 +146,7 @@ let
   in runCommandNoCC "${name}" {
     nativeBuildInputs = [ makeWrapper ];
     LD_LIBRARY_PATH = libPath;
+    LANG = "C.UTF-8";
   } ''
     mkdir -p $out/bin