[Hugs-users] Re: WinHugs bug: putChar (chr 255)

Neil Mitchell ndmitchell at gmail.com
Tue Feb 7 07:58:33 EST 2006


Hi,

> seems that WinHugs hates to do binary I/O :)))
>
> Main> putChar (chr 255)
> я
> Program error: <stdout>: Prelude.putChar: does not exist (file does not exist)

Fixed in the CVS version. Once I've got round to writing a build
script, I'll be able to release these fixes quicker as updates.

The bug was all to do with char/int conversion, and 255 == -1 at a
char level, and Hugs checking for EOF on the result. A few char -> int
and it was all fine.

Thanks

Neil


More information about the Hugs-Users mailing list