Hadrian `test` falls apart when LANG / LC_ALL are not set correctly.
When running
$ hadrian/build test
and the test produces non ascii characters, as in
Converter.hs:113:35: error:
Ambiguous occurrence ‘yield’
It could refer to
either ‘GHC.Data.Stream.yield’,
imported from ‘GHC.Data.Stream’ at Converter.hs:4:1-22
or ‘Control.Concurrent.yield’,
imported from ‘Control.Concurrent’ at Converter.hs:6:1-25
(and originally defined in ‘GHC.Conc.Sync’)
hadrian will fail with:
=====> concprog001(threaded2) 1 of 1 [0, 0, 0]
cd "/run/user/1001/ghctest-be7ny599/test spaces/testsuite/tests/concurrent/prog001/concprog001.run" && "/home/angerman/Projects/ghc/_build/stage1/bin/ghc" --make -o concprog001 Mult -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -O -threaded -eventlog -package ghc<
Compile failed (exit code 1) errors were:
[1 of 6] Compiling Converter ( Converter.hs, Converter.o )
Converter.hs:113:35: error:
Error when running Shake build system:
at want, called at src/Main.hs:102:30 in main:Main
* Depends on: test
* Raised the exception:
fd:141: hGetLine: invalid argument (invalid byte sequence)