From f4a4528da49b2b1b0cace3f65da48b5c58a8aefb Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 2 May 1998 06:38:41 +0000 Subject: [PATCH] Include coding.h. (lock_file): Encode the file name, to make lock file name. --- src/filelock.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/filelock.c b/src/filelock.c index b5dce88639f..81edb567ad9 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -41,6 +41,8 @@ Boston, MA 02111-1307, USA. */ #include "lisp.h" #include "buffer.h" +#include "charset.h" +#include "coding.h" #include #include @@ -370,15 +372,16 @@ void lock_file (fn) Lisp_Object fn; { - register Lisp_Object attack, orig_fn; + register Lisp_Object attack, orig_fn, encoded_fn; register char *lfname, *locker; lock_info_type lock_info; orig_fn = fn; fn = Fexpand_file_name (fn, Qnil); + encoded_fn = ENCODE_FILE (fn); /* Create the name of the lock-file for file fn */ - MAKE_LOCK_NAME (lfname, fn); + MAKE_LOCK_NAME (lfname, encoded_fn); /* See if this file is visited and has changed on disk since it was visited. */ -- 2.39.5