diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-09-19 09:48:39 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-10-21 09:11:12 -0400 |
commit | 30f0d9a9ded55a822e094847d5ac8087262fb8da (patch) | |
tree | f1f84767fab683f358efae960284022957c0ee61 /compiler/GHC/SysTools | |
parent | a4dbd102af1989526ca87f4dd949f72231284e68 (diff) | |
download | haskell-30f0d9a9ded55a822e094847d5ac8087262fb8da.tar.gz |
Write response files in UTF-8 on Windows
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.
Diffstat (limited to 'compiler/GHC/SysTools')
-rw-r--r-- | compiler/GHC/SysTools/Process.hs | 4 |
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 |