Commit 74327f7a authored by Eli Zaretskii's avatar Eli Zaretskii

Fix bug #5303 in `load' on MS-Windows, whereby load-file would fail

for files like C:/the-file.el in root directory of any drive.

 lread.c (Fload): Don't treat files without .elc extension as
 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
 them.
parent 3e8f7d91
2010-01-22 Eli Zaretskii <eliz@gnu.org>
* lread.c (Fload): Don't treat files without .elc extension as
byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
them. (bug#5303)
2010-01-20 Kenichi Handa <handa@m17n.org>
* coding.c (consume_chars): If ! multibyte and the encoder is ccl,
......
......@@ -1155,7 +1155,7 @@ Return t if the file exists and loads successfully. */)
if (!bcmp (SDATA (found) + SBYTES (found) - 4,
".elc", 4)
|| (version = safe_to_load_p (fd)) > 0)
|| (fd >= 0 && (version = safe_to_load_p (fd)) > 0))
/* Load .elc files directly, but not when they are
remote and have no handler! */
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment