Incorrect usage or incorrect macro implementation of:
#ifdef ASSERT_UTF8
# include <assert.h>
# define IS_UTF8_ALIGNED(a) if (a && *a) assert(fl_utf8len(*(a))>0);
# define IS_UTF8_ALIGNED2(a, b) if (b>=0 && b<a->length())
assert(fl_utf8len(a->byte_at(b))>0);
#else
# define IS_UTF8_ALIGNED(a)
# define IS_UTF8_ALIGNED2(a, b)
#endif
Undefining ASSERT_UTF8 (that is hardcoded on Fl_Text_Buffer.h) make the
code not compilable for Fl_Text_Display.cxx like this around line 2988
-----
void Fl_Text_Display::wrapped_line_counter(Fl_Text_Buffer *buf, int
startPos,
int maxPos, int maxLines, bool
startPosIsLineStart, int styleBufOffset,
int *retPos, int *retLines, int
*retLineStart, int *retLineEnd,
bool
countLastLineMissingNewLine) const {
IS_UTF8_ALIGNED(buf->address(startPos))
if (maxPos<buf->length()) IS_UTF8_ALIGNED(buf->address(maxPos))
-----
The crash on fluid happens on win32 only executing a fresh compiled svn
fluid without open anything, it simply crash on the assertion.
En 08/11/2010 14:26:57, Domingo Alvarez Duarte <[email protected]>
escribió:
> Just after update to the last svn Fluid is trowing assertion on invalid
> utf8 on Fl_Text_Display line 1400 from the microsoft runtime library.
--
Usando el revolucionario cliente de correo de Opera:
http://www.opera.com/mail/
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev