Problem reading files...
Andre W B Furtado
aw at free.elogica.com.br
Mon Feb 12 15:09:18 EST 2001
Hello there. I was trying to read a bitmap file using hGetChar but I had a problem: if the file contains the byte 26-decimal (or 1A-hexa) the program aborts. Here you have the output:
Fail: end of file
Action: hGetChar
Since hGetChar is implemented with getc, I created a similar program in C, using getc. This program written in C had no problems. Is this a haskell bug or does anyone know what's going on?
Thanks,
Andre Furtado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20010212/7109bc60/attachment.htm
More information about the Glasgow-haskell-bugs
mailing list