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

Robert Praetorius 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:

        http://c-faq.com/stdio/getcharc.html
        "Whether plain char is signed or unsigned is implementation-
         defined."

( http://www.dreamsongs.com/WorseIsBetter.html leaps suddenly to
  mind. . . )


More information about the Hugs-Users mailing list