bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6115: 64 bit windows environment variables


From: RICHARD M. HEIBERGER
Subject: bug#6115: 64 bit windows environment variables
Date: Wed, 5 May 2010 15:29:54 -0400

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
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]