bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: Re: AW: Questions on PSPP: thank you


From: Ben Pfaff
Subject: PSPP-BUG: Re: AW: Questions on PSPP: thank you
Date: Wed, 28 Jan 2009 21:14:35 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Hi Michel.  Some time ago Mario (CC'd) reported to me that the
PSPP build that you provide at http://www.cecaps.ufmg.br/pspp/
will sometimes write corrupted .sav files.  Recently he reminded
me about this.

Recently Mario reminded me about that problem, so I now have a
patch that might fix the problem, which I'm appending to this
email.  Michel, can you please try applying this patch,
rebuilding PSPP with it, and providing the binary to Mario.
Mario, when Michel gives you that binary, will you please see
whether it fixes the problem with writing .sav files?

Thanks, everyone!  I'd really like to fix this problem.

diff --git a/src/data/make-file.c b/src/data/make-file.c
index 807adc5..2162741 100644
--- a/src/data/make-file.c
+++ b/src/data/make-file.c
@@ -185,7 +185,7 @@ replace_file_start (const char *file_name, const char *mode,
         }
 
       /* Create file by that name. */
-      fd = open (rf->tmp_name, O_WRONLY | O_CREAT | O_EXCL, permissions);
+      fd = open (rf->tmp_name, O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 
permissions);
       if (fd >= 0)
         break;
       if (errno != EEXIST)




-- 
"Writing is easy.
 All you do is sit in front of a typewriter and open a vein."
--Walter Smith




reply via email to

[Prev in Thread] Current Thread [Next in Thread]