Re: [fltk.bugs] [HIGH] STR #2808: fl_text_buffer corrupts data when reading from file

2012-03-01 Thread Greg Ercolano
[STR Closed w/Resolution] Link: http://www.fltk.org/str.php?L2808 Version: 1.3.0 Fix Version: 1.3-current (r9259) Fixed in Subversion repository. Link: http://www.fltk.org/str.php?L2808 Version: 1.3.0 Fix Version: 1.3-current (r9259) ___ fltk-bugs

Re: [fltk.bugs] [HIGH] STR #2808: fl_text_buffer corrupts data when reading from file

2012-03-01 Thread Steve Maas
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 Hi Greg It looks like it's working. I tested both the editor example as well as my code on some large files and in both cases the files looked good. T

Re: [fltk.bugs] [HIGH] STR #2808: fl_text_buffer corrupts data when reading from file

2012-03-01 Thread Greg Ercolano
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 Also: added some docs to this code as r9260. Link: http://www.fltk.org/str.php?L2808 Version: 1.3.0 ___

Re: [fltk.bugs] [HIGH] STR #2808: fl_text_buffer corrupts data when reading from file

2012-03-01 Thread Greg Ercolano
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 b

Re: [fltk.bugs] [HIGH] STR #2808: fl_text_buffer corrupts data when reading from file

2012-02-21 Thread Greg Ercolano
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 Yes, that's what I've been looking at too.. I was thinking there's a bug in the straddle code, since the corruption seems to appear at the buffer size

Re: [fltk.bugs] [HIGH] STR #2808: fl_text_buffer corrupts data when reading from file

2012-02-21 Thread Steve Maas
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 Hi Greg, I think the problem lies in the utf8_input_filter function (defined in Fl_Text_Buffer.cxx). The endline variable is used to refer to the end

Re: [fltk.bugs] [HIGH] STR #2808: fl_text_buffer corrupts data when reading from file

2012-02-21 Thread Greg Ercolano
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 If I use od(1) to make an octal dump of your file and save that pure ascii octal dump to a file, then edit that in editor and resave, I still get corru

Re: [fltk.bugs] [HIGH] STR #2808: fl_text_buffer corrupts data when reading from file

2012-02-21 Thread Greg Ercolano
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 Not sure the issue offhand.. I don't know the Fl_Text_Editor widget well at all.. just chiming in that I can confirm. I can replicate the corruption,

[fltk.bugs] [HIGH] STR #2808: fl_text_buffer corrupts data when reading from file

2012-02-21 Thread Steve Maas
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 Hi, I've ran into a somewhat serious issue. When reading a file using the Fl_Text_Buffer::appendfile() function, it appears that the text gets corrupt