DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2726
Version: 1.3-current


I have recollected about an annoying debug window that appears in debug
version of Fluid when you use UTF8 string for tooltip (WIN32 VC2008,
VC2010). Assertion window arises after calling isspace() e.g. in the line
fluid\Fl_Type.cxx:597.

------
_ASSERTE((unsigned)(c + 1) <= 256);
That's line from MS' istype.c which doesn't let passing of any bytes > 127
or < 0.

The problem can be fixed via explicit cast to "unsigned char" or via
option 
/J (Default char Type Is unsigned) for the Fluid project.

@@ -594,9 +594,9 @@
   undo_checkpoint();
   int length = 0;
   if (n) { // see if blank, strip leading & trailing blanks
-    if (!nostrip) while (isspace(*n)) n++;
+    if (!nostrip) while (isspace((unsigned char)*n)) n++;
     const char *e = n + strlen(n);
-    if (!nostrip) while (e > n && isspace(*(e-1))) e--;
+    if (!nostrip) while (e > n && isspace((unsigned char)*(e-1))) e--;
     length = e-n;
     if (!length) n = 0;
   }


Link: http://www.fltk.org/str.php?L2726
Version: 1.3-current

Attachment: about.fl
Description: Binary data

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to