#4215: canonicalizePath behaves strangely with paths that do not exist
------------------------------------+---------------------------------------
    Reporter:  creswick             |        Owner:                             
        Type:  bug                  |       Status:  new                        
    Priority:  normal               |    Milestone:  7.2.1                      
   Component:  libraries/directory  |      Version:  6.12.3                     
    Keywords:                       |     Testcase:                             
   Blockedby:                       |   Difficulty:                             
          Os:  Unknown/Multiple     |     Blocking:                             
Architecture:  Unknown/Multiple     |      Failure:  Incorrect result at runtime
------------------------------------+---------------------------------------

Comment(by batterseapower):

 Another complication is that according to T4113 on Windows:

 {{{
 canonicalizePath "/no/such/file" == "C:\\no\\such\\file"
 }}}

 This function should probably be fixed so that it never fails just because
 the file is missing. Current behaviour is causing T4113 to fail on OS X
 because on OS X:

 {{{
 canonicalizePath "" == getCurrentDirectory
 }}}

 But on other platforms it throws an exception.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to