diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-12-07 16:00:16 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-12-07 16:00:16 +0000 |
| commit | 0db080e76215c1d5cfcb2451b75da9bfaae708b5 (patch) | |
| tree | 3fd426bb999ddd2fb769a2cfe9c7884c6baefdbc /src/Fl_Text_Buffer.cxx | |
| parent | 6e7ed9c46aa9bae2b10b242f87af444aafbffda4 (diff) | |
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...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Buffer.cxx')
| -rw-r--r-- | src/Fl_Text_Buffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx index 2e6fc4652..0f5b635ba 100644 --- a/src/Fl_Text_Buffer.cxx +++ b/src/Fl_Text_Buffer.cxx @@ -1521,7 +1521,7 @@ int Fl_Text_Buffer::findchar_backward(int startPos, unsigned int searchChar, 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); |
