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

Reply via email to