summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-09-19 09:48:39 -0400
committerGHC GitLab CI <ghc-ci@gitlab-haskell.org>2022-10-20 14:04:52 -0400
commitb832e8409919e8fcdba12266ce5bd410b3ff20eb (patch)
tree0d0e8ff97390e5d429218576ea46ac9ea65485d7
parent027324b2a993b326e542e4a81d0362eebf615117 (diff)
downloadhaskell-wip/T12971.tar.gz
Write response files in UTF-8 on Windowswip/T12971
This reverts the workaround introduced in f63c8ef33ec9666688163abe4ccf2d6c0428a7e7, which taught our response file logic to write response files with the `latin1` encoding to workaround `gcc`'s lacking Unicode support. This is now no longer necessary (and in fact actively unhelpful) since we rather use Clang.
-rw-r--r--compiler/GHC/SysTools/Process.hs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/GHC/SysTools/Process.hs b/compiler/GHC/SysTools/Process.hs
index 63ff2c8294..39c589572f 100644
--- a/compiler/GHC/SysTools/Process.hs
+++ b/compiler/GHC/SysTools/Process.hs
@@ -170,11 +170,7 @@ runSomethingResponseFile logger tmpfs dflags filter_fn phase_name pgm args mb_en
getResponseFile args = do
fp <- newTempName logger tmpfs (tmpDir dflags) TFL_CurrentModule "rsp"
withFile fp WriteMode $ \h -> do
-#if defined(mingw32_HOST_OS)
- hSetEncoding h latin1
-#else
hSetEncoding h utf8
-#endif
hPutStr h $ unlines $ map escape args
return fp