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

Previous Next

Package: emacs;

Reported by: MON KEY <monkey <at> sandpframing.com>

Date: Wed, 28 Oct 2009 20:25:05 UTC

Severity: normal

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#4823: closed (w32 paths `substitute-in-file-name' fails when
 environmental variable  is set for \\ style paths:)
Date: Sat, 02 Jul 2011 01:49:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 2 Jul 2011 03:47:18 +0200
with message-id <BANLkTimgwsAQOEoX5GerCyXam6ns4KWfwQ <at> mail.gmail.com>
and subject line Re: bug#4823: w32 paths `substitute-in-file-name' fails when environmental variable is set for \\ style paths:
has caused the GNU bug report #4823,
regarding w32 paths `substitute-in-file-name' fails when environmental variable  is set for \\ style paths:
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
4823: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4823
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: MON KEY <monkey <at> sandpframing.com>
To: bug-gnu-emacs <at> gnu.org
Subject: w32 paths `substitute-in-file-name' fails when environmental variable 
	is set for \\ style paths:
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)


[Message part 3 (message/rfc822, inline)]
From: Juanma Barranquero <lekktu <at> gmail.com>
To: 4823-done <at> debbugs.gnu.org
Subject: Re: bug#4823: w32 paths `substitute-in-file-name' fails when
	environmental variable is set for \\ style paths:
Date: Sat, 2 Jul 2011 03:47:18 +0200
> I'm closing this one

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

    Juanma


This bug report was last modified 13 years and 323 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.