|
From: | Jason Rumney |
Subject: | Re: Issue with make-temp-file on Windows |
Date: | Fri, 18 Feb 2011 15:09:35 +0800 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 |
On 18/02/2011 13:56, Fabian Ezequiel Gallina wrote:
I think I just found some issue with make-temp-file. While this function does the right thing, it seems on Windows it returns the path with forward slashes instead of backward ones. From what I can see from this bug report[0], this is happening right now on Windows: (make-temp-file "test") => C:/Windows/Temp/test3044XRQ While this should be: (make-temp-file "test") => C:\Windows\Temp\test3044XRQ Is this intended or is it a bug?
It is intended, as it is normal for filenames to be represented that way internally in Emacs.
convert-standard-filename will work as long as the user is not using a Cygwin shell. You could start by assuming that if they use a Cygwin shell they will also use a Cygwin port of python, and if users complain fine tune the solution further.If it is intended, is it a portable way I could translate the slashes correctly?
[Prev in Thread] | Current Thread | [Next in Thread] |