unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs 25.2, win64, env vars
@ 2017-06-11 20:33 Fabrice Popineau
  2017-06-11 21:33 ` Noam Postavsky
  0 siblings, 1 reply; 19+ messages in thread
From: Fabrice Popineau @ 2017-06-11 20:33 UTC (permalink / raw)
  To: Emacs developers

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

Hi,

I might have found a bug in the way Emacs is handling environment variables
under Windows.

I start Emacs with -Q and I can do the following :

(getenv "TEMP")
"C:\\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp"
(getenv "temp")
"C:\\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp"

(setenv "TEMP" "c:/Temp/")
"c:/Temp/"
(getenv "TEMP")
"C:\\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp"
(getenv "temp")
"C:\\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp"

(setenv "temp" "c:/Temp/")
"c:/Temp/"
(getenv "TEMP")
"c:/Temp/"
(getenv "temp")
"c:/Temp/"

AFAIK, environment variables are case insensitive under Windows.
So there is something that is not taken care of for the case of case
insensitive environment variables.
I haven't (yet) been able to find where this magic happens however.

Any idea about where to look for will be welcome :-)

Regards,

Fabrice

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-07-27 18:54 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-11 20:33 Emacs 25.2, win64, env vars Fabrice Popineau
2017-06-11 21:33 ` Noam Postavsky
2017-06-12  4:40   ` Fabrice Popineau
2017-07-10 17:08     ` Eli Zaretskii
2017-07-11  9:17       ` Fabrice Popineau
2017-07-11 14:31         ` Noam Postavsky
2017-07-11 14:43         ` Eli Zaretskii
2017-07-11 16:24           ` Fabrice Popineau
2017-07-11 16:30             ` Eli Zaretskii
2017-07-11 18:48               ` Fabrice Popineau
2017-07-22  7:07             ` Eli Zaretskii
2017-07-22 20:02               ` Fabrice Popineau
2017-07-23 14:48                 ` Eli Zaretskii
2017-07-24 20:34                   ` Fabrice Popineau
2017-07-24 21:20                     ` Noam Postavsky
2017-07-25 14:16                     ` Eli Zaretskii
2017-07-27 16:35                       ` Fabrice Popineau
2017-07-27 16:48                         ` Stefan Monnier
2017-07-27 18:54                         ` Óscar Fuentes

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).