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

[STR New]

Link: http://www.fltk.org/str.php?L2808
Version: 1.3.0


OK, applied a fix as r9259; please try it.

Basically a one line fix that makes the code smaller..
the rare Holy Grail of fixes, lol.

The corruption bug seemed to be caused by this line
in the initialization code at the top of utf8_input_filter():

    line_p = endline = line;

..that should really read:

    line_p = line;

My reasoning:
'endline' is supposed to /remember/ what's left in the line[] buffer
between calls to the utf8_input_filter() function. By resetting it at the
top, that was effectively /dropping/ the leftovers that it was meant to
remember, causing the small <100 char dropout at the buffer boundaries.

Looks like the other similar #ifdef'ed out function
'general_input_filter()' has this bug too; fixing both.

(I could not test the unused 'general_input_filter()' though; when enabled
it generates garbage results either way. Fixing the bug but leaving it
#ifdef'ed out)


Link: http://www.fltk.org/str.php?L2808
Version: 1.3.0

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

Reply via email to