From: Eli Zaretskii Date: Sat, 6 Apr 2019 14:53:30 +0000 (+0300) Subject: Encode the FILENAME argument of 'file-locked-p' X-Git-Tag: emacs-27.0.90~3261^2~92 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=91018cec0157f649a0b4b5db7399e683e7089093;p=emacs.git Encode the FILENAME argument of 'file-locked-p' * src/filelock.c (Ffile_locked_p): Encode the file name, before passing it to system APIs. (Bug#35171) --- diff --git a/src/filelock.c b/src/filelock.c index 5cec1996201..baf87b7f635 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -822,6 +822,7 @@ t if it is locked by you, else a string saying which user has locked it. */) USE_SAFE_ALLOCA; filename = Fexpand_file_name (filename, Qnil); + filename = ENCODE_FILE (filename); MAKE_LOCK_NAME (lfname, filename);