Opened 16 years ago

Closed 12 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 Changed 13 years ago by bird

Status: newassigned

comment:2 Changed 12 years ago by bird

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.