dotnet: force ICU to be loaded during tests

This commit is contained in:
David McFarland 2024-04-17 09:41:03 -03:00
parent 7150d7e203
commit 81693c96ba
1 changed files with 3 additions and 1 deletions

View File

@ -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"
'';