[GHC] #9603: getArgs path transformation is broken on Windows

#9603: getArgs path transformation is broken on Windows -------------------------------------+------------------------------------- Reporter: gintas | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 7.9 Keywords: | Operating System: Windows Architecture: Unknown/Multiple | Type of failure: Incorrect Difficulty: Unknown | result at runtime Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- It looks like System.Environment.getArgs is trying to be smart on Windows and to transform arguments drive paths to environment-local paths (e.g., 'C:/' => 'C:\msys64', but it messes up the mangling somewhere if the path is not at the beginning of the argument: $ args "C:/" ["C:/"] $ /tmp/args " C:/" [" C;C:\\msys64"] Note the leading "C;" which makes no sense. $ uname -s MINGW64_NT-6.3 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9603 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9603: getArgs path transformation is broken on Windows -------------------------------------+------------------------------------- Reporter: gintas | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: | Version: 7.9 libraries/base | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: Incorrect | Blocked By: result at runtime | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by gintas): This turns out to be an issue with the old mingw gcc that is bundled with GHC in the ghc-tarballs repository. A simple C file printing it arguments prints a mangled string when compiled with the bundled gcc, but works fine when using the relatively up-to-date system gcc version. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9603#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9603: getArgs path transformation is broken on Windows -------------------------------------+------------------------------------- Reporter: gintas | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Build | Version: 7.9 System | Keywords: Resolution: duplicate | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: Incorrect | Blocked By: result at runtime | Related Tickets: #9218 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * cc: hvr, ekmett (removed) * resolution: => duplicate * status: new => closed * component: libraries/base => Build System * related: => #9218 Comment: Sounds like doing #9218 will solve this issue as well. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9603#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC