Unverified Commit a2d690a2 authored by Yt's avatar Yt Committed by GitHub
Browse files

beam: fix locale errors on darwin (#386233)

parents 9c19f3f3 a293bbb2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -57,7 +57,8 @@ let
          in
          "[${lib.concatStringsSep "," options}]";

        LC_ALL = "C.UTF-8";
        LANG = if stdenv.isLinux then "C.UTF-8" else "C";
        LC_CTYPE = if stdenv.isLinux then "C.UTF-8" else "UTF-8";

        # add to ERL_LIBS so other modules can find at runtime.
        # http://erlang.org/doc/man/code.html#code-path
+2 −1
Original line number Diff line number Diff line
@@ -134,7 +134,8 @@ stdenv.mkDerivation (
      in
      "[${lib.concatStringsSep "," options}]";

    LC_ALL = "C.UTF-8";
    LANG = if stdenv.isLinux then "C.UTF-8" else "C";
    LC_CTYPE = if stdenv.isLinux then "C.UTF-8" else "UTF-8";

    postUnpack =
      ''