+2013-12-15 Eli Zaretskii <eliz@gnu.org>
+
+ * emacs.c (decode_env_path): Fix bogus comparison against
+ emacs_dir. Reported by Juanma Barranquero <lekktu@gmail.com>.
+
2013-12-15 Juanma Barranquero <lekktu@gmail.com>
* w32fns.c (Fw32_shell_execute): Remove unused local variable.
/* egetenv looks in process-environment, which holds the variables
in their original system-locale encoding. We need emacs_dir to
be in UTF-8. */
- filename_from_ansi (edir, emacs_dir);
+ if (edir)
+ filename_from_ansi (edir, emacs_dir);
#endif
/* It's okay to use getenv here, because this function is only used
#ifdef WINDOWSNT
/* Relative file names in the default path are interpreted as
being relative to $emacs_dir. */
- if (emacs_dir && defaulted
+ if (edir && defaulted
&& strncmp (path, emacs_dir_env, emacs_dir_len) == 0)
element = Fexpand_file_name (Fsubstring
(element,