all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "RICHARD M. HEIBERGER" <rmh@temple.edu>
To: 6115@debbugs.gnu.org
Cc: ess-core@stat.math.ethz.ch
Subject: bug#6115: 64 bit windows environment variables
Date: Wed, 5 May 2010 15:29:54 -0400	[thread overview]
Message-ID: <r2yc9b79b281005051229od348bf6ctcf56d3da578c65e1@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 735 bytes --]

From the MS Windows 64 bit CMD window I get

c:\>echo %ProgramFiles(x86)%
C:\Program Files (x86)

c:\>echo %ProgramFiles%
C:\Program Files

c:\>echo %ProgramW6432%
C:\Program Files

From
GNU Emacs 23.1.97.1 (i386-mingw-nt6.1.7600) of 2010-05-04 on G41R2F1
I get
(getenv "ProgramFiles(x86)")
"C:\\Program Files (x86)"
(getenv "ProgramFiles")
"C:\\Program Files (x86)"
(getenv "ProgramW6432")
"C:\\Program Files"
In emacs, both the "ProgramFiles*" environment variables give the same
result.
I don't think that should be correct behavior.

Fortunately, Windows provides the ProgramW6432 environment variable.

What is the correct way in emacs to detect the two different locations in
which
Windows puts 32 bit and 64 bit programs?

Rich

[-- Attachment #2: Type: text/html, Size: 1152 bytes --]

             reply	other threads:[~2010-05-05 19:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-05 19:29 RICHARD M. HEIBERGER [this message]
2010-05-06 10:23 ` bug#6115: 64 bit windows environment variables Juanma Barranquero
2010-05-06 13:16 ` Stefan Monnier
2010-05-10 11:43   ` Martin Maechler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=r2yc9b79b281005051229od348bf6ctcf56d3da578c65e1@mail.gmail.com \
    --to=rmh@temple.edu \
    --cc=6115@debbugs.gnu.org \
    --cc=ess-core@stat.math.ethz.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.