[GHC] #12971: Paths are encoded incorrectly when invoking GCC

GHC ghc-devs at haskell.org
Wed Dec 21 00:11:09 UTC 2016


#12971: Paths are encoded incorrectly when invoking GCC
---------------------------------+----------------------------------------
        Reporter:  erikprantare  |                Owner:  Phyx
            Type:  bug           |               Status:  new
        Priority:  highest       |            Milestone:  8.2.1
       Component:  Compiler      |              Version:  8.0.1
      Resolution:                |             Keywords:
Operating System:  Windows       |         Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+----------------------------------------

Comment (by Phyx-):

 Ok, this issue is an upstream one.

 The problem is with how the response files are read into GCC. We write out
 a UTF8 file but the relevant code in `libiberty`[1] assumes 1 byte per
 character. It works fine if response files aren't used since the rest of
 the argument handling code seems to work fine with utf-16 and utf-8.

 Assuming we want to keep the response files, one possible work around
 would be to convert all paths to the dos short paths.

 [1] https://github.com/gcc-mirror/gcc/blob/master/libiberty/argv.c#L420

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12971#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list