beam: fix locale errors on darwin (#386233)

authored by

Yt and committed by
GitHub
a2d690a2 9c19f3f3

+4 -2
+2 -1
pkgs/development/beam-modules/build-mix.nix
··· 57 57 in 58 58 "[${lib.concatStringsSep "," options}]"; 59 59 60 - LC_ALL = "C.UTF-8"; 60 + LANG = if stdenv.isLinux then "C.UTF-8" else "C"; 61 + LC_CTYPE = if stdenv.isLinux then "C.UTF-8" else "UTF-8"; 61 62 62 63 # add to ERL_LIBS so other modules can find at runtime. 63 64 # http://erlang.org/doc/man/code.html#code-path
+2 -1
pkgs/development/beam-modules/mix-release.nix
··· 134 134 in 135 135 "[${lib.concatStringsSep "," options}]"; 136 136 137 - LC_ALL = "C.UTF-8"; 137 + LANG = if stdenv.isLinux then "C.UTF-8" else "C"; 138 + LC_CTYPE = if stdenv.isLinux then "C.UTF-8" else "UTF-8"; 138 139 139 140 postUnpack = 140 141 ''