diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-11-06 11:36:02 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-11-06 11:36:02 +0100 |
| commit | c86ca1a9fc3bb8b09eb429458b2ecf68b62cd1de (patch) | |
| tree | 8c60474e660a584412fd590ef347c05ded35ac90 /fluid/fluid.cxx | |
| parent | acc96cdf5666a37ff87d0038af74c1af1628ca11 (diff) | |
FLUID: '\r' (CR) is skipped when reading project files
Project and code files are now always written with LF instead of
CRLF, even on MSWindows machines.
Diffstat (limited to 'fluid/fluid.cxx')
| -rw-r--r-- | fluid/fluid.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 26bc5a500..fbfe5a870 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -946,7 +946,7 @@ bool new_project_from_template() { char line[1024], *ptr, *next; FILE *infile, *outfile; - if ((infile = fl_fopen(tname, "r")) == NULL) { + if ((infile = fl_fopen(tname, "rb")) == NULL) { fl_alert("Error reading template file \"%s\":\n%s", tname, strerror(errno)); set_modflag(0); @@ -954,7 +954,7 @@ bool new_project_from_template() { return false; } - if ((outfile = fl_fopen(cutfname(1), "w")) == NULL) { + if ((outfile = fl_fopen(cutfname(1), "wb")) == NULL) { fl_alert("Error writing buffer file \"%s\":\n%s", cutfname(1), strerror(errno)); fclose(infile); |
