[Hugs-users] WinHugs bug: putChar (chr 255)
rmp at ma.ultranet.com
Mon Feb 6 13:45:39 EST 2006
> > > In the underlying C API, (char)255 == (char)-1 == EOF.
> > > Regards,
> > > Malcolm
> > But I think the underlying C API is actually int, and char 255 is
> > a Unicode char. Anyway, I should be able to make some progress on
> > it in the next few days.
> The example works fine under Unix, BTW.
(Just a WAG, but) Perhaps this is not due to OS but different
compiler defaults, because:
"Whether plain char is signed or unsigned is implementation-
( http://www.dreamsongs.com/WorseIsBetter.html leaps suddenly to
mind. . . )
More information about the Hugs-Users