[GHC] #12213: In Python testsuite, setting stdout to unbuffered causes us to switch to ascii output locale
GHC
ghc-devs at haskell.org
Tue Jun 28 15:35:26 UTC 2016
#12213: In Python testsuite, setting stdout to unbuffered causes us to switch to
ascii output locale
-------------------------------------+-------------------------------------
Reporter: ezyang | Owner: thomie
Type: bug | Status: new
Priority: normal | Milestone:
Component: Test Suite | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by ezyang):
If it is Unicode output, but the output is what we "expected", then the
test suite driver doesn't try to print it and there is no error. The
second thing is that for direct invocations, the driver twiddles
environment variables so that GHC does not produce Unicode, so you need to
do something like a run_command test.
So, one way to get the error is to do this:
1. Open `tests/typecheck/should_compile/tc170.hs` and add a type error,
e.g., `x = True :: Int`
2. Run `make TEST=tc170`
3. Error!
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12213#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list