From: Paul Eggert Date: Thu, 20 Feb 2020 01:21:16 +0000 (-0800) Subject: Fix bug when visiting euc-jp-encoded directories X-Git-Tag: emacs-27.0.90~39 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=62afbc513a4730c3352ffcee9f5cb9e1336c83e3;p=emacs.git Fix bug when visiting euc-jp-encoded directories Problem reported by Ken Sasaki (Bug#39672). * src/fileio.c (Ffile_directory_p): Encode filename before giving it to file_directory_p. This fixes a typo introduced in 2019-09-18T02:18:14Z!eggert@cs.ucla.edu. --- diff --git a/src/fileio.c b/src/fileio.c index 34934dd6df6..482f88627a5 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2911,7 +2911,7 @@ See `file-symlink-p' to distinguish symlinks. */) if (!NILP (handler)) return call2 (handler, Qfile_directory_p, absname); - return file_directory_p (absname) ? Qt : Qnil; + return file_directory_p (ENCODE_FILE (absname)) ? Qt : Qnil; } /* Return true if FILE is a directory or a symlink to a directory.