Author: matt
Date: 2010-12-07 08:00:16 -0800 (Tue, 07 Dec 2010)
New Revision: 7969
Log:
Restoring the non-binary read for MSWindows files. Still, I think this is
harmful because now we read in ASCII and write in binary format...
Modified:
branches/branch-1.3/src/Fl_Text_Buffer.cxx
Modified: branches/branch-1.3/src/Fl_Text_Buffer.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Buffer.cxx 2010-12-06 23:25:52 UTC (rev
7968)
+++ branches/branch-1.3/src/Fl_Text_Buffer.cxx 2010-12-07 16:00:16 UTC (rev
7969)
@@ -1521,7 +1521,7 @@
int Fl_Text_Buffer::insertfile(const char *file, int pos, int /*buflen*/)
{
FILE *fp;
- if (!(fp = fl_fopen(file, "rb")))
+ if (!(fp = fl_fopen(file, "r")))
return 1;
fseek(fp, 0, SEEK_END);
size_t filesize = ftell(fp);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit