From 69cda1a7c0fa7e0b11eb3648373389f8e06a68d9 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 23 Jan 2015 08:16:53 +0100 Subject: [PATCH] haskell-generic-builder: set locale to "UTF-8" in nix-shell environments The package builder did this already, but I forgot to add the setting in the interactive environment. Fixes https://github.com/NixOS/nixpkgs/issues/5904. --- pkgs/development/haskell-modules/generic-builder.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index b6fde0a303c4..303a9d7859a9 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -252,6 +252,8 @@ stdenv.mkDerivation ({ env = stdenv.mkDerivation { name = "interactive-${optionalString hasActiveLibrary "haskell-"}${pname}-${version}-environment"; nativeBuildInputs = [ ghcEnv systemBuildInputs ]; + LANG = "en_US.UTF-8"; + LOCALE_ARCHIVE = optionalString stdenv.isLinux "${glibcLocales}/lib/locale/locale-archive"; shellHook = '' export NIX_GHC="${ghcEnv}/bin/ghc" export NIX_GHCPKG="${ghcEnv}/bin/ghc"