delorie.com/archives/browse.cgi | search |
From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: string can't read certian characters??? |
Date: | 23 Apr 2001 14:14:25 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 19 |
Message-ID: | <9c1dc1$1t0$1@nets3.rz.RWTH-Aachen.DE> |
References: | <3AE099B3 DOT FE657644 AT jps DOT net> <3AE31151 DOT 6E8D693D AT jps DOT net> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 988035265 1952 137.226.32.75 (23 Apr 2001 14:14:25 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 23 Apr 2001 14:14:25 GMT |
Originator: | broeker@ |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Dennis Yelle <dennis51 AT jps DOT net> wrote: [...] > and on line 120 of the file \DJGPP\LANG\CXX\STD\STRAITS.H > is_del calls isspace(a) > but isspace only works for characters in the range 0x00 to 0x7f. That's not correct. isspace() and its friends work for unsigned chars in the range 0x00 to 0xff, and for EOF, as their input arguments. The real bug in this case would be that 'a' is a plain char variable, rather than an unsigned one. In that case, the call would have to be isspace((unsigned char) a) That'd be a bug in the C++ library that came with your installed gpp*b.zip package. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |