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

GHC ghc-devs at haskell.org
Wed Sep 17 19:48:25 UTC 2014


#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


More information about the ghc-tickets mailing list