pspp-dev
[Top][All Lists]
Advanced

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

Re: Problem editing file


From: John Darrington
Subject: Re: Problem editing file
Date: Fri, 20 Mar 2009 12:53:15 +0900
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Mar 20, 2009 at 12:26:25AM -0300, Michel Boaventura wrote:
     > I'm also trying to use one windows function to do it (MoveFileEx). Let
     > see if it works.
     
     Well, it works. I can save a file just clicking on the "SAVE" button.
     
     What I did was change the "rename" to:
     ok = MoveFileEx(rf->tmp_name, rf->file_name, MOVEFILE_REPLACE_EXISTING) != 
0;
     
     and insert an "#include <windows.h>" on the top of the file.
     
     I need to use "!= 0" because it only returns zero if a error happens.
     
     Now I guess that if you or john put a precompiler option to change it
     if we are compiling to linux or windows we could solve this issue.

I don't think it's really pspp's role to fix buggy mingw behaviour.
It should be done by the the Mingw, libc or gnulib people.  (at this
stage, I'm not sure which).  If none of the maintainers of those
libraries will do it, then we could look at fixing it in pspp, but I
think that should be a last resort.

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


Attachment: signature.asc
Description: Digital signature


reply via email to

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