bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] directory separator


From: John Darrington
Subject: Re: [PATCH] directory separator
Date: Wed, 6 Jun 2012 19:43:52 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Jun 06, 2012 at 01:10:09PM -0600, Eric Blake wrote:
     On 06/06/2012 12:54 PM, John Darrington wrote:
     > I'm offering this patch which ensures that the paths of tempfiles are 
     > created with the appropriate separator for the machine.
     
     What platform did you need it on?  Windows understands paths with /,
     even if it prefers \ as the canonical separator, and no one has
     complained about mingw compilations being unable to create temp files.
     We need a bit more background why this patch would matter before it can
     be applied.
     

True.  It can create temp files with a / in the path.  But it confuses 
windows users who are used to \ especially  when the path has been 
constructed from another path with \  They see strings like:

 TEMPDIR is C:\Users\User\AppData\Local\Temp/psppJnmXOk.


Also, we've been getting bug reports from windows users which suggest 
that tempfiles are mysteriously disappearing.  I have a hypotheis 
that the use of / in the path, is interacting badly with _O_TEMPORARY flag
and causing the file to be prematurely deleted.  I don't have any fast
evidence that this is the case, but it is an inconsistency which seems
suspicious.

If as you say, windows prefers \  is there a good reason NOT to use it?

J'



-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net 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]