This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH/RFA] Distinguish between EOF and character with value 0xff
- From: Wizards' Guild <wizardsguild at earthlink dot net>
- To: newlib at sourceware dot org
- Date: Tue, 21 Apr 2009 20:39:36 -0400 (EDT)
- Subject: Re: [PATCH/RFA] Distinguish between EOF and character with value 0xff
- Reply-to: Wizards' Guild <wizardsguild at earthlink dot net>
Folks,
It seems to me that supporting -127..-2 for the new tables is misleading at best. I suggest that, if negative chars are to be supported, that whole section of the ctype table should be ALWAYS ZERO regardless of code page. For the default locale, this is no change. However, it will give a gentle clue to users of the new tables that they'd better shape up and conform to the standard.
Second, although I have no issue with the library being kind to sloppy users, the library itself should NEVER rely on being able to pass negative chars to ctype routines.
---
Mike Burgess
Avanex Corporation
607-562-7169