* env.el (getenv): When FRAME is non-nil, pass the frame environment

to `getenv-internal', not the frame.  (Bug#2259)
This commit is contained in:
Juanma Barranquero 2009-02-10 10:24:59 +00:00
parent eb8c6ab3ad
commit 263903f794
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-02-10 Eric Hanchrow <eric.hanchrow@gmail.com>
* env.el (getenv): When FRAME is non-nil, pass the frame environment
to `getenv-internal', not the frame. (Bug#2259)
2009-02-10 Kenichi Handa <handa@m17n.org>
* descr-text.el (describe-char-display): On terminal, if terminal

View file

@ -198,7 +198,9 @@ in the environment list of the selected frame."
(encode-coding-string
variable locale-coding-system)
variable)
frame)))
(and frame
(assq 'environment
(frame-parameters frame))))))
(if (and enable-multibyte-characters value)
(setq value (decode-coding-string value locale-coding-system)))
(when (interactive-p)