Opened 16 years ago

Closed 13 years ago

#199 closed defect (fixed)

libc: the ctype.h is_whatever doesn't handle EOF correctly / busted char 255 in setlocal

Reported by: bird Owned by: bird
Priority: normal Milestone: libc-0.6.5
Component: libc Version: 0.6.2
Severity: normal Keywords:
Cc:

Description

See conversation with Peter.

Change History (2)

comment:1 by bird, 14 years ago

Status: newassigned

comment:2 by bird, 13 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r3789 and r3891. Testcase in r3890.

Note. Negative character values have undefined behavior, except for EOF (-1). Thus it's ok to always return 0 for -1/EOF and something else for 255.

Note: See TracTickets for help on using tickets.