Regarding this warning:
Fl_Help_View.cxx:1493:2: warning: #warning this isspace & 255 test will
probably not work on a utf8 stream... And we use it everywhere!
..which refers to these lines:
while (isspace((*ptr)&255))
ptr ++;
..hmm, I'm not sure why that would be a problem since ptr is a
const char*, and where UTF8 is a stream of bytes, each byte being
in the range 0~255, and non-ascii UTF8 sequences must be outside
of the ascii range (ie. all bytes > 127, IIRC)
I think the purpose of the &255 is to sign convert the
signed char to an unsigned char. For instance, this test program:
--- snip
#include <stdio.h>
main()
{
const char s = 0xa0; // > 127
printf("s=%d\n", s);
printf("s=%d\n", s&255);
}
--- snip
..when executed results in:
s=-96 // signed
s=160 // unsigned conversion
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk