fbuf: New data structure for buffered file I/O.
[pspp] / src / language / data-io / data-writer.c
index bf9505e7dd82878270a59ab13372c2a0137720c4..2e03218f69c287bcc418b5d13c6864e4ccd77791 100644 (file)
@@ -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->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;