
#15096: GHC fails to execute gcc on Windows when unicode character is in the path -------------------------------------+------------------------------------- Reporter: nh2 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Build System | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: Blocked By: | Blocking: Related Tickets: #15021 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by lehins): This seems very much related. If the `.hs` file has unicode chars in it, compilation will fail on Windows (regardless of the code page setting): {{{ PS C:\phab> ghc Я.hs [1 of 1] Compiling Main ( ?.hs, ?.o ) Assembler messages: Fatal error: can't create ?.o: Invalid argument `gcc.exe' failed in phase `Assembler'. (Exit code: 1) PS C:\phab> chcp 65001 Active code page: 65001 PS C:\phab> ghc Я.hs [1 of 1] Compiling Main ( Я.hs, Я.o ) Assembler messages: Fatal error: can't create ?.o: Invalid argument `gcc.exe' failed in phase `Assembler'. (Exit code: 1) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15096#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler