[GHC] #4113: canonicalizePath "" returns noise

GHC cvs-ghc at haskell.org
Wed Jun 2 14:34:51 EDT 2010


#4113: canonicalizePath "" returns noise
---------------------------------+------------------------------------------
    Reporter:  bkomuves          |       Owner:                             
        Type:  bug               |      Status:  new                        
    Priority:  normal            |   Component:  libraries/base             
     Version:  6.10.4            |    Keywords:  canonicalizePath           
          Os:  Unknown/Multiple  |    Testcase:                             
Architecture:  Unknown/Multiple  |     Failure:  Incorrect result at runtime
---------------------------------+------------------------------------------
 Apparently

 {{{
 canonicalizePath ""
 }}}

 returns random noise on both Windows and Linux (GHC 6.10.4).

 Example session:
 {{{
 System.Directory> canonicalizePath ""
 "\242\227\&6\STX\NAK"
 }}}

 On OSX / GHC 6.10.1 it works correctly (returning the current directory).
 Linux / GHC 6.8.2 also returns noise.

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


More information about the Glasgow-haskell-bugs mailing list