From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#2062: PATH can contain non-expanded variables Date: Tue, 27 Jan 2009 11:25:20 +0100 Message-ID: References: <497E69EB.70609@f2s.com> <497ED2B7.2080509@f2s.com> Reply-To: Juanma Barranquero , 2062@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233053124 18435 80.91.229.12 (27 Jan 2009 10:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 10:45:24 +0000 (UTC) Cc: 2062@emacsbugs.donarmstrong.com To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 11:46:37 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 1LRlSl-0005IP-0d for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 11:46:35 +0100 Original-Received: from localhost ([127.0.0.1]:43942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRlRT-0000kQ-6E for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 05:45:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRlPq-000080-13 for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 05:43:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRlPo-00007P-MB for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 05:43:33 -0500 Original-Received: from [199.232.76.173] (port=59875 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRlPo-00007F-Ck for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 05:43:32 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36037) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRlPn-0005aW-U3 for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 05:43:32 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0RAhT0I008666; Tue, 27 Jan 2009 02:43:29 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0RAZ2us006290; Tue, 27 Jan 2009 02:35:02 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juanma Barranquero Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Tue, 27 Jan 2009 10:35:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2062 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 2062-submit@emacsbugs.donarmstrong.com id=B2062.12330519305008 (code B ref 2062); Tue, 27 Jan 2009 10:35:02 +0000 Original-Received: (at 2062) by emacsbugs.donarmstrong.com; 27 Jan 2009 10:25:30 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0RAPQs0005002 for <2062@emacsbugs.donarmstrong.com>; Tue, 27 Jan 2009 02:25:28 -0800 Original-Received: by ewy3 with SMTP id 3so8234041ewy.1 for <2062@emacsbugs.donarmstrong.com>; Tue, 27 Jan 2009 02:25:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=uGq/83CUBQdnEYqAthQ/PmYo9dSoig0H7jCUCrV/E54=; b=Nvz+o+Ky7rWHBTiScfNcJcSDJ0/nIjvzVIM2/ui/hujGcbL5bz5u6jr31W+id6dZzW lddFGjmkVDEUvcQv8ytgN4UO40oEOUome2jdoxfzvYUg4cF8gRZpp4GRJKV4f7P1U12i 5oB+USH4VpLOMWaD2Y/rxscZPzFsvdsdyUM64= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=NStCgTwWb2j1dBIcEBRrYleY4CMV2QceJ+vXNgso0pcjjal3DgICoPL+3dEdvsTIH5 8wX0vdiEoiUbsjHA54/7rd1bRcP7rtLlCMomcOkTuF265ckD+izJOtPiE837OUB3ZtK2 UDKrqInF4yjO7Bgb838RdJA92250c+m+N4LH4= Original-Received: by 10.210.35.17 with SMTP id i17mr756298ebi.165.1233051920422; Tue, 27 Jan 2009 02:25:20 -0800 (PST) In-Reply-To: <497ED2B7.2080509@f2s.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 27 Jan 2009 05:43:32 -0500 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:24606 Archived-At: On Tue, Jan 27, 2009 at 10:24, Jason Rumney wrote: > If the system does not handle REG_EXPAND_SZ in the App Paths registry > values, then the bug is with whatever incorrectly used that type when > setting the registry value. I'd say that Microsoft is of two minds about it, judging by the entries for msimn.exe (Outlook Express), pbrush.exe (mspaint) and a few others, that do use REG_EXPAND_SZ. That said, ExpandEnvironmentStrings is not *specifically* for REG_EXPAND_SZ registry entries; it is generally useful for cases such as this one. So we can either: a) consider it as a bug outsize Emacs, and do nothing, or b) decide that a variable-like string of the form %VARIABLE% in a PATH-like value is much, much likely to be that, an unexpanded env var, than part of a file or directory name, and so expand it. I'm obviously in camp b), and would like to commit this patch. If you're strongly on camp a, though, I'll close this bug as notabug + wontfix. Juanma