GNU bug report logs - #6115
64 bit windows environment variables

Previous Next

Package: emacs;

Reported by: "RICHARD M. HEIBERGER" <rmh <at> temple.edu>

Date: Wed, 5 May 2010 19:42:02 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "RICHARD M. HEIBERGER" <rmh <at> temple.edu>
To: 6115 <at> debbugs.gnu.org
Cc: ess-core <at> stat.math.ethz.ch
Subject: bug#6115: 64 bit windows environment variables
Date: Wed, 5 May 2010 15:29:54 -0400
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

This bug report was last modified 15 years and 64 days ago.

Previous Next


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