# HG changeset patch # User Richard M. Stallman # Date 894091121 0 # Node ID e40329fcfc5e95f07e6fd67e16602a1bc030a2ab # Parent 1b46a79d86e3030f8ab1bd7631d63d8f3d2e0830 Include coding.h. (lock_file): Encode the file name, to make lock file name. diff -r 1b46a79d86e3 -r e40329fcfc5e src/filelock.c --- a/src/filelock.c Sat May 02 06:38:09 1998 +0000 +++ b/src/filelock.c Sat May 02 06:38:41 1998 +0000 @@ -41,6 +41,8 @@ #include "lisp.h" #include "buffer.h" +#include "charset.h" +#include "coding.h" #include #include @@ -370,15 +372,16 @@ 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. */