This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/17898] Incorrect usage of isdigit, etc.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2004 20:48:54 -0000
- Subject: [Bug other/17898] Incorrect usage of isdigit, etc.
- References: <20041008203632.17898.terra@gnome.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-08 20:48 -------
./libobjc/gc.c: while (isdigit (*++type))
is not wrong because we cannot get greater than 127 in type at all (this is an encoding which does not
use non ascii characters).
And these cannot recieve characters greater than 127 either (unless something is wrong with your
machine):
./boehm-gc/os_dep.c: while (isspace(c)) c = stat_buf[buf_offset++];
./boehm-gc/os_dep.c: while (!isspace(c)) c = stat_buf[buf_offset++];
./boehm-gc/os_dep.c: while (isspace(c)) c = stat_buf[buf_offset++];
./boehm-gc/os_dep.c: while (isdigit(c)) {
Also :
./boehm-gc/cord/de.c: } else if (c < 0x100 && isdigit(c)){
is right.
Also it is 4.4 BSD extension to accept greater than the 0xFF.
And most of these come from up stream projects.
libltdl/ltdl.c belongs to libtool, report it to them.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17898