From 81693c96bab62e166a9828a76533823370def2a8 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Wed, 17 Apr 2024 09:41:03 -0300 Subject: [PATCH] dotnet: force ICU to be loaded during tests --- pkgs/development/compilers/dotnet/common.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/dotnet/common.nix b/pkgs/development/compilers/dotnet/common.nix index 7cd37975f988..49f3e3be4d77 100644 --- a/pkgs/development/compilers/dotnet/common.nix +++ b/pkgs/development/compilers/dotnet/common.nix @@ -71,8 +71,10 @@ export DOTNET_ROOT=${runtime} '' + run); + # Setting LANG to something other than 'C' forces the runtime to search + # for ICU, which will be required in most user environments. checkConsoleOutput = command: '' - output="$(${command})" + output="$(LANG=C.UTF-8 ${command})" # yes, older SDKs omit the comma [[ "$output" =~ Hello,?\ World! ]] && touch "$out" '';