-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GHC_CHARENC=UTF-8 when calling GHC #5742
Comments
If the environment variable https://github.com/ghc/ghc/blob/0dc723957d0fdb5909f145405b775efea0fe2f6e/ghc/Main.hs#L113-L118 The variable |
Perhaps |
I reported this upstream: https://gitlab.haskell.org/ghc/ghc/-/issues/20963 |
We use
hGetContents
incallCompiler'
:agda/src/full/Agda/Compiler/CallCompiler.hs
Lines 55 to 76 in 9399b3a
The handles
out
anderr
use the default (locale) encoding. That is perhaps appropriate, if we know nothing about the encoding used by the process that we call. We only usecallCompiler'
to call GHC. Does GHC use the locale encoding when writing to stdout or stderr?The text was updated successfully, but these errors were encountered: