|
[ ghc-Bugs-742220 ] readFile problems: msg#00034lang.haskell.glasgow.bugs
Bugs item #742220, was opened at 2003-05-23 02:22 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=742220&group_id=8032 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: readFile problems Initial Comment: Hello, We are two students from the University of Utrecht (the Netherlands) working on a project in Haskell. During work on the project, we encountered a problem with the 'readFile' IO Monad. readFile stops reading a file when it encounters ASCII character 26 (\SUB or \^Z - the escape character), as the following piece of coding shows. We've tested this with both the Hugs interpreter and the GHC compiler, but both encounter the same problem. Are there any known solutions for this? Regards, Richard Nieuwenhuis and Niels Reyngoud rnieuwen@xxxxxxxxxxxxxxxxx, nreijngo@xxxxxxxxxxxxxxxxx ------------ module Main where main = do let output = problemtext putStr output putStr "\n\n" writeFile "outputfile.txt" output text <- readFile "outputfile.txt" putStr text problemtext :: String problemtext = "strange\SUBstrange" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=742220&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Changes to make fptools insfrastructure usable for standalone libraries, Alastair Reid |
|---|---|
| Next by Date: | stdout vs stderr in compiler output, Alastair Reid |
| Previous by Thread: | [ ghc-Bugs-741600 ] Just (before,_,_,_) in Text.Regex.Posix.regex ec is to short., SourceForge.net |
| Next by Thread: | stdout vs stderr in compiler output, Alastair Reid |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |