projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fbuf: New data structure for buffered file I/O.
[pspp]
/
src
/
language
/
data-io
/
data-writer.c
diff --git
a/src/language/data-io/data-writer.c
b/src/language/data-io/data-writer.c
index bf9505e7dd82878270a59ab13372c2a0137720c4..2e03218f69c287bcc418b5d13c6864e4ccd77791 100644
(file)
--- a/
src/language/data-io/data-writer.c
+++ b/
src/language/data-io/data-writer.c
@@
-92,7
+92,7
@@
dfm_open_writer (struct file_handle *fh, const char *encoding)
w = xmalloc (sizeof *w);
w->fh = fh_ref (fh);
w->lock = lock;
w = xmalloc (sizeof *w);
w->fh = fh_ref (fh);
w->lock = lock;
- w->rf = replace_file_start (w->fh,
"wb"
, 0666, &w->file);
+ w->rf = replace_file_start (w->fh,
true
, 0666, &w->file);
w->encoding = xstrdup (encoding);
w->line_ends = fh_get_line_ends (fh);
w->unit = ei.unit;
w->encoding = xstrdup (encoding);
w->line_ends = fh_get_line_ends (fh);
w->unit = ei.unit;