From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#4823: w32 paths `substitute-in-file-name' fails when environmental variable is set for \\ style paths: Date: Wed, 28 Oct 2009 16:19:44 -0400 Message-ID: Reply-To: MON KEY , 4823@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1256761752 28198 80.91.229.12 (28 Oct 2009 20:29:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2009 20:29:12 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 28 21:29:06 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N3F8c-00083D-6R for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2009 21:29:05 +0100 Original-Received: from localhost ([127.0.0.1]:56733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3F8b-0008Ac-AY for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2009 16:28:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3F74-0006Lh-SG for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 16:27:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3F70-0006GT-09 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 16:27:22 -0400 Original-Received: from [199.232.76.173] (port=53075 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3F6z-0006GD-QA for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 16:27:17 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49765) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N3F6y-00082A-Um for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 16:27:17 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9SKREpj020013; Wed, 28 Oct 2009 13:27:14 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9SKP5S8019747; Wed, 28 Oct 2009 13:25:05 -0700 Resent-Date: Wed, 28 Oct 2009 13:25:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: MON KEY Original-Sender: stan@derbycityprints.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 28 Oct 2009 20:25:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4823 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125676119219209 (code B ref -1); Wed, 28 Oct 2009 20:25:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 28 Oct 2009 20:19:52 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9SKJpSU019206 for ; Wed, 28 Oct 2009 13:19:52 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3Ezm-00044U-Ew for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 16:19:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3Ezh-0003zS-Nd for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 16:19:50 -0400 Original-Received: from [199.232.76.173] (port=43737 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3Ezh-0003zE-E5 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 16:19:45 -0400 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:57539) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3Ezh-0006zV-5B for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 16:19:45 -0400 Original-Received: by yxe29 with SMTP id 29so1038043yxe.14 for ; Wed, 28 Oct 2009 13:19:44 -0700 (PDT) Original-Received: by 10.150.253.21 with SMTP id a21mr29892760ybi.157.1256761184183; Wed, 28 Oct 2009 13:19:44 -0700 (PDT) X-Google-Sender-Auth: 6148b3bc07092b36 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 28 Oct 2009 16:27:22 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32264 Archived-At: 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)