]> git.eshelyaron.com Git - emacs.git/commit
Keep w32 environment settings internal only
authorNoam Postavsky <npostavs@gmail.com>
Wed, 29 Jun 2016 22:52:57 +0000 (18:52 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 18 Jul 2016 21:22:06 +0000 (17:22 -0400)
commit73f0715df53c6a12a3d9039ac1a1664d30c293ff
tree713607d32db74cf9c0f3c35dcc3a65e40da1304e
parent1879b9055eaf5c9f3fd126c2c21450cdd8c83262
Keep w32 environment settings internal only

* src/emacs.c (main) [WINDOWSNT]: Move init_environment calls after the
set_initial_environment call.  This prevents Emacs' modifications to the
environment from contaminating Vprocess_environment and
Vinitial_environment (Bug #10980).
* src/callproc.c (getenv_internal) [WINDOWSNT]: Consult Emacs' internal
environment in as a fallback to Vprocess_environment.
* test/src/callproc-tests.el (initial-environment-preserved): New Test.
src/callproc.c
src/emacs.c
test/src/callproc-tests.el [new file with mode: 0644]