#472 typecast in getc & putc

closed-fixed
nobody
2003-12-21
2003-12-20
Kees Zeelenberg
No

In version 3.2 of Mingw-runtime, inlined versions of getc
and putc were introduced. It seems that the character
to be read or written should be typecast to an unsigned
char (or bitwise ANDed with 0xFF). Otherwise, weird
results may be obtained. E.g. Hp2xx completely breaks
down on binary plot files.

Discussion

  • Danny Smith
    Danny Smith
    2003-12-21

    Logged In: YES
    user_id=11494

    Already fixed in CVS.
    Danny

     
  • Danny Smith
    Danny Smith
    2003-12-21

    • status: open --> closed-fixed