[GHC] #13373: Handle long file paths on Windows

GHC ghc-devs at haskell.org
Sun Mar 5 11:34:06 UTC 2017


#13373: Handle long file paths on Windows
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  libraries/base    |              Version:  8.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 Rufflewind):

 I have a
 [https://github.com/haskell/directory/blob/b82ca0194767bf418330bd1ed89ea541716e596a/System/Directory/Internal/Windows.hsc#L313-L325
 helper function] which can be used to add `\\?\` to paths and takes care
 of the subtleties of `..` etc:

 So far I've managed to
 [https://github.com/haskell/directory/commit/f77655a2e17c6f7076c7cf9d7de83f5b7f585b63
 use this] for most of the direct Win32 API calls.  However, `c_stat` (from
 GHC's `System.Posix.Internals`) is used quite a bit and does not support
 longer paths AFAIK, so that probably needs to be replaced somehow.

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


More information about the ghc-tickets mailing list