Subject: bug#4823: closed (Re: bug#4823: w32 paths `substitute-in-file-name' fails when environmental variable is set for \\ style paths:)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 02 Jul 2011 01:49:02 +0000

Your bug report

#4823: w32 paths `substitute-in-file-name' fails when environmental variable  is set for \\ style paths:

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
4823: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4823
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#4823: w32 paths `substitute-in-file-name' fails when environmental variable is set for \\ style paths:
From: Juanma Barranquero <[email-masked]>
To: [email-masked]
Date: Sat, 2 Jul 2011 03:47:18 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> I'm closing this one

No, *now* I'm closing it...

    Juanma

Subject: w32 paths `substitute-in-file-name' fails when environmental variable is set for \\ style paths:
From: MON KEY <[email-masked]>
To: [email-masked]
Date: Wed, 28 Oct 2009 16:19:44 -0400

w32 paths `substitute-in-file-name' fails when environmental variable
is set for \\ style paths:

;; :SITUATION-1 w/out trailing `\\'
(setenv "HOME2" "C:\\home\\me")
(getenv "HOME2")
;=> "C:\\home\\me"
(substitute-in-file-name "$HOME2\\.emacs")
;=> "C:\\home\\me/emacs"
(substitute-in-file-name "$HOME2/.emacs")
;=>"C:\\home\\me/.emacs"
(substitute-in-file-name "$HOME2.emacs")
;=> "C:\\home\\me.emacs"

;; :SITUATION-2 with trailing `\\'
(setenv "HOME2" "C:\\home\\me\\")
(getenv "HOME2")
;=> "C:\\home\\me\\"
(substitute-in-file-name "$HOME2\\.emacs")
;=> "/.emacs"
(substitute-in-file-name "$HOME2\.emacs")
;=> "C:\\home\\me\\.emacs"
(substitute-in-file-name "$HOME2//.emacs")
;=> "/.emacs"
(substitute-in-file-name "$HOME2.emacs")
;=> "C:\\home\\me\\.emacs"

;; ON FOLLOWING SYSTEM:
GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
 of 2009-06-30 on LENNART-69DE564 (patched)