isalpha man page - return value in case of argument equal to EOF

Andreas Schwab schwab@suse.de
Mon Jun 12 09:41:54 GMT 2023


On Jun 12 2023, Florian Weimer wrote:

> * Andreas Schwab via Libc-alpha:
>
>> On Jun 12 2023, Luigi Pellecchia via Libc-alpha wrote:
>>
>>> Even if there may be several reasons to accept EOF, it is not clear what
>>> the expected value should be in that case.
>>
>> Since EOF is not a character, it cannot be part of any of the character
>> classes.
>
> EOF can be equal to 'ÿ' (as in, have the same value and type).

No.  EOF is -1, (unsigned char) 'ÿ' is 255.

> It's unclear to me what we actually want to document in terms of C
> extensions.  I thought that is* was unspecified for EOF,

The classification functions are required to accept EOF.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list