X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdata-io%2Fdata-writer.c;h=2e03218f69c287bcc418b5d13c6864e4ccd77791;hb=7344ce41487d4294726d597b99bbef5c3cfa1ce6;hp=bf9505e7dd82878270a59ab13372c2a0137720c4;hpb=3db83b515247dca69abbf7ad05d3dbdfec4b524c;p=pspp diff --git a/src/language/data-io/data-writer.c b/src/language/data-io/data-writer.c index bf9505e7dd..2e03218f69 100644 --- 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->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;