#4202: Cannot open a file with double quotes in the name
------------------------+---------------------------------------------------
    Reporter:  guest    |       Owner:                
        Type:  bug      |      Status:  new           
    Priority:  normal   |   Component:  libraries/base
     Version:  6.12.1   |    Keywords:                
          Os:  Windows  |    Testcase:                
Architecture:  x86      |     Failure:  Runtime crash 
------------------------+---------------------------------------------------
 When trying to open a file with double quotes in the name, using
 System.IO.openBinaryFile or System.IO.openFile, an exception is thrown:
   Prelude System.IO> openBinaryFile "Restaurant \"A B C\"" ReadMode >>
 return ()
   *** Exception: Restaurant "A B C": openBinaryFile: invalid argument
 (Invalid argument)

 As System.Directory.copyFile uses System.IO.openBinaryFile, copyFile also
 results in an exception; this is probably the same for other functions.

 Henk-Jan van Tuyl (hjgtuyl <at> chello <dot> nl)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4202>
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